| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/android/preferences/pref_service_bridge.h" | 5 #include "chrome/browser/android/preferences/pref_service_bridge.h" |
| 6 | 6 |
| 7 #include <jni.h> | 7 #include <jni.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "base/values.h" | 26 #include "base/values.h" |
| 27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 28 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 28 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 29 #include "chrome/browser/net/prediction_options.h" | 29 #include "chrome/browser/net/prediction_options.h" |
| 30 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 30 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 31 #include "chrome/browser/profiles/profile_manager.h" | 31 #include "chrome/browser/profiles/profile_manager.h" |
| 32 #include "chrome/browser/translate/chrome_translate_client.h" | 32 #include "chrome/browser/translate/chrome_translate_client.h" |
| 33 #include "chrome/browser/ui/android/android_about_app_info.h" | 33 #include "chrome/browser/ui/android/android_about_app_info.h" |
| 34 #include "chrome/common/chrome_features.h" | 34 #include "chrome/common/chrome_features.h" |
| 35 #include "chrome/common/pref_names.h" | 35 #include "chrome/common/pref_names.h" |
| 36 #include "chrome/grit/locale_settings.h" | |
| 37 #include "components/browsing_data/core/browsing_data_utils.h" | 36 #include "components/browsing_data/core/browsing_data_utils.h" |
| 38 #include "components/browsing_data/core/pref_names.h" | 37 #include "components/browsing_data/core/pref_names.h" |
| 39 #include "components/content_settings/core/browser/host_content_settings_map.h" | 38 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 40 #include "components/content_settings/core/common/content_settings.h" | 39 #include "components/content_settings/core/common/content_settings.h" |
| 41 #include "components/content_settings/core/common/content_settings_pattern.h" | 40 #include "components/content_settings/core/common/content_settings_pattern.h" |
| 42 #include "components/content_settings/core/common/pref_names.h" | 41 #include "components/content_settings/core/common/pref_names.h" |
| 43 #include "components/metrics/metrics_pref_names.h" | 42 #include "components/metrics/metrics_pref_names.h" |
| 44 #include "components/password_manager/core/common/password_manager_pref_names.h" | 43 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 45 #include "components/prefs/pref_service.h" | 44 #include "components/prefs/pref_service.h" |
| 46 #include "components/safe_browsing/common/safe_browsing_prefs.h" | 45 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 .obj(), | 1011 .obj(), |
| 1013 out); | 1012 out); |
| 1014 } | 1013 } |
| 1015 | 1014 |
| 1016 static void SetSupervisedUserId(JNIEnv* env, | 1015 static void SetSupervisedUserId(JNIEnv* env, |
| 1017 const JavaParamRef<jobject>& obj, | 1016 const JavaParamRef<jobject>& obj, |
| 1018 const JavaParamRef<jstring>& pref) { | 1017 const JavaParamRef<jstring>& pref) { |
| 1019 GetPrefService()->SetString(prefs::kSupervisedUserId, | 1018 GetPrefService()->SetString(prefs::kSupervisedUserId, |
| 1020 ConvertJavaStringToUTF8(env, pref)); | 1019 ConvertJavaStringToUTF8(env, pref)); |
| 1021 } | 1020 } |
| OLD | NEW |