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

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

Issue 2127403002: Make browsing_data component a layered component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed output_name from components/browsing_data/content/BUILD.gn Created 4 years, 5 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
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/browser/prefs/incognito_mode_prefs.h" 36 #include "chrome/browser/prefs/incognito_mode_prefs.h"
37 #include "chrome/browser/profiles/profile_manager.h" 37 #include "chrome/browser/profiles/profile_manager.h"
38 #include "chrome/browser/sync/profile_sync_service_factory.h" 38 #include "chrome/browser/sync/profile_sync_service_factory.h"
39 #include "chrome/browser/translate/chrome_translate_client.h" 39 #include "chrome/browser/translate/chrome_translate_client.h"
40 #include "chrome/browser/ui/android/android_about_app_info.h" 40 #include "chrome/browser/ui/android/android_about_app_info.h"
41 #include "chrome/common/channel_info.h" 41 #include "chrome/common/channel_info.h"
42 #include "chrome/common/chrome_features.h" 42 #include "chrome/common/chrome_features.h"
43 #include "chrome/common/pref_names.h" 43 #include "chrome/common/pref_names.h"
44 #include "chrome/grit/locale_settings.h" 44 #include "chrome/grit/locale_settings.h"
45 #include "components/browser_sync/browser/profile_sync_service.h" 45 #include "components/browser_sync/browser/profile_sync_service.h"
46 #include "components/browsing_data/browsing_data_utils.h" 46 #include "components/browsing_data/core/browsing_data_utils.h"
47 #include "components/browsing_data/pref_names.h" 47 #include "components/browsing_data/core/pref_names.h"
48 #include "components/browsing_data_ui/history_notice_utils.h" 48 #include "components/browsing_data_ui/history_notice_utils.h"
49 #include "components/content_settings/core/browser/host_content_settings_map.h" 49 #include "components/content_settings/core/browser/host_content_settings_map.h"
50 #include "components/content_settings/core/common/content_settings.h" 50 #include "components/content_settings/core/common/content_settings.h"
51 #include "components/content_settings/core/common/content_settings_pattern.h" 51 #include "components/content_settings/core/common/content_settings_pattern.h"
52 #include "components/content_settings/core/common/pref_names.h" 52 #include "components/content_settings/core/common/pref_names.h"
53 #include "components/metrics/metrics_pref_names.h" 53 #include "components/metrics/metrics_pref_names.h"
54 #include "components/password_manager/core/common/password_manager_pref_names.h" 54 #include "components/password_manager/core/common/password_manager_pref_names.h"
55 #include "components/prefs/pref_service.h" 55 #include "components/prefs/pref_service.h"
56 #include "components/signin/core/common/signin_pref_names.h" 56 #include "components/signin/core/common/signin_pref_names.h"
57 #include "components/strings/grit/components_locale_settings.h" 57 #include "components/strings/grit/components_locale_settings.h"
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 1194
1195 return ConvertJavaStringToUTF8(android_permission); 1195 return ConvertJavaStringToUTF8(android_permission);
1196 } 1196 }
1197 1197
1198 static void SetSupervisedUserId(JNIEnv* env, 1198 static void SetSupervisedUserId(JNIEnv* env,
1199 const JavaParamRef<jobject>& obj, 1199 const JavaParamRef<jobject>& obj,
1200 const JavaParamRef<jstring>& pref) { 1200 const JavaParamRef<jstring>& pref) {
1201 GetPrefService()->SetString(prefs::kSupervisedUserId, 1201 GetPrefService()->SetString(prefs::kSupervisedUserId,
1202 ConvertJavaStringToUTF8(env, pref)); 1202 ConvertJavaStringToUTF8(env, pref));
1203 } 1203 }
OLDNEW
« no previous file with comments | « chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc ('k') | chrome/browser/browsing_data/autofill_counter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698