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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/extensions/api/settings_private/prefs_util.h" 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 #include "chrome/browser/extensions/settings_api_helpers.h" 10 #include "chrome/browser/extensions/settings_api_helpers.h"
11 #include "chrome/browser/prefs/session_startup_pref.h" 11 #include "chrome/browser/prefs/session_startup_pref.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "components/autofill/core/common/autofill_pref_names.h" 14 #include "components/autofill/core/common/autofill_pref_names.h"
15 #include "components/bookmarks/common/bookmark_pref_names.h" 15 #include "components/bookmarks/common/bookmark_pref_names.h"
16 #include "components/browsing_data/core/pref_names.h" 16 #include "components/browsing_data/core/pref_names.h"
17 #include "components/content_settings/core/common/pref_names.h" 17 #include "components/content_settings/core/common/pref_names.h"
18 #include "components/drive/drive_pref_names.h" 18 #include "components/drive/drive_pref_names.h"
19 #include "components/password_manager/core/common/password_manager_pref_names.h" 19 #include "components/password_manager/core/common/password_manager_pref_names.h"
20 #include "components/prefs/pref_service.h" 20 #include "components/prefs/pref_service.h"
21 #include "components/proxy_config/proxy_config_pref_names.h" 21 #include "components/proxy_config/proxy_config_pref_names.h"
22 #include "components/safe_browsing_db/safe_browsing_prefs.h" 22 #include "components/safe_browsing/common/safe_browsing_prefs.h"
23 #include "components/search_engines/default_search_manager.h" 23 #include "components/search_engines/default_search_manager.h"
24 #include "components/spellcheck/browser/pref_names.h" 24 #include "components/spellcheck/browser/pref_names.h"
25 #include "components/translate/core/browser/translate_pref_names.h" 25 #include "components/translate/core/browser/translate_pref_names.h"
26 #include "components/translate/core/browser/translate_prefs.h" 26 #include "components/translate/core/browser/translate_prefs.h"
27 #include "components/url_formatter/url_fixer.h" 27 #include "components/url_formatter/url_fixer.h"
28 #include "extensions/browser/extension_pref_value_map.h" 28 #include "extensions/browser/extension_pref_value_map.h"
29 #include "extensions/browser/extension_pref_value_map_factory.h" 29 #include "extensions/browser/extension_pref_value_map_factory.h"
30 #include "extensions/browser/extension_registry.h" 30 #include "extensions/browser/extension_registry.h"
31 #include "extensions/browser/extension_system.h" 31 #include "extensions/browser/extension_system.h"
32 #include "extensions/browser/management_policy.h" 32 #include "extensions/browser/management_policy.h"
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) 771 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_)
772 ->GetExtensionControllingPref(pref_object.key); 772 ->GetExtensionControllingPref(pref_object.key);
773 if (extension_id.empty()) 773 if (extension_id.empty())
774 return nullptr; 774 return nullptr;
775 775
776 return ExtensionRegistry::Get(profile_)->GetExtensionById( 776 return ExtensionRegistry::Get(profile_)->GetExtensionById(
777 extension_id, ExtensionRegistry::ENABLED); 777 extension_id, ExtensionRegistry::ENABLED);
778 } 778 }
779 779
780 } // namespace extensions 780 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/preference/preference_api.cc ('k') | chrome/browser/interstitials/chrome_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698