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

Side by Side Diff: extensions/browser/extension_prefs_factory.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "extensions/browser/extension_prefs_factory.h" 5 #include "extensions/browser/extension_prefs_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/prefs/pref_service.h"
11 #include "components/keyed_service/content/browser_context_dependency_manager.h" 10 #include "components/keyed_service/content/browser_context_dependency_manager.h"
11 #include "components/prefs/pref_service.h"
12 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
13 #include "extensions/browser/extension_pref_value_map.h" 13 #include "extensions/browser/extension_pref_value_map.h"
14 #include "extensions/browser/extension_pref_value_map_factory.h" 14 #include "extensions/browser/extension_pref_value_map_factory.h"
15 #include "extensions/browser/extension_prefs.h" 15 #include "extensions/browser/extension_prefs.h"
16 #include "extensions/browser/extensions_browser_client.h" 16 #include "extensions/browser/extensions_browser_client.h"
17 #include "extensions/common/constants.h" 17 #include "extensions/common/constants.h"
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 // static 21 // static
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 context), 59 context),
60 prefs_observers); 60 prefs_observers);
61 } 61 }
62 62
63 content::BrowserContext* ExtensionPrefsFactory::GetBrowserContextToUse( 63 content::BrowserContext* ExtensionPrefsFactory::GetBrowserContextToUse(
64 content::BrowserContext* context) const { 64 content::BrowserContext* context) const {
65 return ExtensionsBrowserClient::Get()->GetOriginalContext(context); 65 return ExtensionsBrowserClient::Get()->GetOriginalContext(context);
66 } 66 }
67 67
68 } // namespace extensions 68 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/browser/lazy_background_task_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698