mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
prefs: Disable Android JNI
This commit is contained in:
parent
834246c640
commit
f32e08b4e9
@ -58,7 +58,7 @@ component("prefs") {
|
|||||||
|
|
||||||
public_deps = [ "//base" ]
|
public_deps = [ "//base" ]
|
||||||
|
|
||||||
if (is_android) {
|
if (false) {
|
||||||
sources += [
|
sources += [
|
||||||
"android/pref_service_android.cc",
|
"android/pref_service_android.cc",
|
||||||
"android/pref_service_android.h",
|
"android/pref_service_android.h",
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
#include "components/prefs/value_map_pref_store.h"
|
#include "components/prefs/value_map_pref_store.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if 0
|
||||||
#include "components/prefs/android/pref_service_android.h"
|
#include "components/prefs/android/pref_service_android.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -538,7 +538,7 @@ void PrefService::RemovePrefObserverAllPrefs(PrefObserver* obs) {
|
|||||||
pref_notifier_->RemovePrefObserverAllPrefs(obs);
|
pref_notifier_->RemovePrefObserverAllPrefs(obs);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if 0
|
||||||
base::android::ScopedJavaLocalRef<jobject> PrefService::GetJavaObject() {
|
base::android::ScopedJavaLocalRef<jobject> PrefService::GetJavaObject() {
|
||||||
if (!pref_service_android_) {
|
if (!pref_service_android_) {
|
||||||
pref_service_android_ = std::make_unique<PrefServiceAndroid>(this);
|
pref_service_android_ = std::make_unique<PrefServiceAndroid>(this);
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
#include "components/prefs/pref_value_store.h"
|
#include "components/prefs/pref_value_store.h"
|
||||||
#include "components/prefs/prefs_export.h"
|
#include "components/prefs/prefs_export.h"
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if 0
|
||||||
#include "base/android/scoped_java_ref.h"
|
#include "base/android/scoped_java_ref.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ class PrefNotifierImpl;
|
|||||||
class PrefObserver;
|
class PrefObserver;
|
||||||
class PrefRegistry;
|
class PrefRegistry;
|
||||||
class PrefStore;
|
class PrefStore;
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if 0
|
||||||
class PrefServiceAndroid;
|
class PrefServiceAndroid;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ class COMPONENTS_PREFS_EXPORT PrefService {
|
|||||||
void RemoveStandaloneBrowserPref(const std::string& path);
|
void RemoveStandaloneBrowserPref(const std::string& path);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if 0
|
||||||
base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
|
base::android::ScopedJavaLocalRef<jobject> GetJavaObject();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -530,7 +530,7 @@ class COMPONENTS_PREFS_EXPORT PrefService {
|
|||||||
// of registered preferences are.
|
// of registered preferences are.
|
||||||
mutable PreferenceMap prefs_map_;
|
mutable PreferenceMap prefs_map_;
|
||||||
|
|
||||||
#if BUILDFLAG(IS_ANDROID)
|
#if 0
|
||||||
// Manage and fetch the java object that wraps this PrefService on
|
// Manage and fetch the java object that wraps this PrefService on
|
||||||
// android.
|
// android.
|
||||||
std::unique_ptr<PrefServiceAndroid> pref_service_android_;
|
std::unique_ptr<PrefServiceAndroid> pref_service_android_;
|
||||||
|
Loading…
Reference in New Issue
Block a user