Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/browser/android/preferences/pref_service_bridge.cc

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 25 matching lines...) Expand all
36 #include "chrome/grit/locale_settings.h" 36 #include "chrome/grit/locale_settings.h"
37 #include "components/browsing_data/core/browsing_data_utils.h" 37 #include "components/browsing_data/core/browsing_data_utils.h"
38 #include "components/browsing_data/core/pref_names.h" 38 #include "components/browsing_data/core/pref_names.h"
39 #include "components/content_settings/core/browser/host_content_settings_map.h" 39 #include "components/content_settings/core/browser/host_content_settings_map.h"
40 #include "components/content_settings/core/common/content_settings.h" 40 #include "components/content_settings/core/common/content_settings.h"
41 #include "components/content_settings/core/common/content_settings_pattern.h" 41 #include "components/content_settings/core/common/content_settings_pattern.h"
42 #include "components/content_settings/core/common/pref_names.h" 42 #include "components/content_settings/core/common/pref_names.h"
43 #include "components/metrics/metrics_pref_names.h" 43 #include "components/metrics/metrics_pref_names.h"
44 #include "components/password_manager/core/common/password_manager_pref_names.h" 44 #include "components/password_manager/core/common/password_manager_pref_names.h"
45 #include "components/prefs/pref_service.h" 45 #include "components/prefs/pref_service.h"
46 #include "components/safe_browsing_db/safe_browsing_prefs.h" 46 #include "components/safe_browsing/common/safe_browsing_prefs.h"
47 #include "components/signin/core/common/signin_pref_names.h" 47 #include "components/signin/core/common/signin_pref_names.h"
48 #include "components/strings/grit/components_locale_settings.h" 48 #include "components/strings/grit/components_locale_settings.h"
49 #include "components/translate/core/browser/translate_pref_names.h" 49 #include "components/translate/core/browser/translate_pref_names.h"
50 #include "components/translate/core/browser/translate_prefs.h" 50 #include "components/translate/core/browser/translate_prefs.h"
51 #include "components/version_info/version_info.h" 51 #include "components/version_info/version_info.h"
52 #include "components/web_resource/web_resource_pref_names.h" 52 #include "components/web_resource/web_resource_pref_names.h"
53 #include "content/public/browser/browser_thread.h" 53 #include "content/public/browser/browser_thread.h"
54 #include "jni/PrefServiceBridge_jni.h" 54 #include "jni/PrefServiceBridge_jni.h"
55 #include "third_party/icu/source/common/unicode/uloc.h" 55 #include "third_party/icu/source/common/unicode/uloc.h"
56 #include "ui/base/l10n/l10n_util.h" 56 #include "ui/base/l10n/l10n_util.h"
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 .obj(), 1012 .obj(),
1013 out); 1013 out);
1014 } 1014 }
1015 1015
1016 static void SetSupervisedUserId(JNIEnv* env, 1016 static void SetSupervisedUserId(JNIEnv* env,
1017 const JavaParamRef<jobject>& obj, 1017 const JavaParamRef<jobject>& obj,
1018 const JavaParamRef<jstring>& pref) { 1018 const JavaParamRef<jstring>& pref) {
1019 GetPrefService()->SetString(prefs::kSupervisedUserId, 1019 GetPrefService()->SetString(prefs::kSupervisedUserId,
1020 ConvertJavaStringToUTF8(env, pref)); 1020 ConvertJavaStringToUTF8(env, pref));
1021 } 1021 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698