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

Side by Side Diff: apps/shell/browser/shell_extensions_browser_client.cc

Issue 220353002: Remove //chrome dependency from ExtensionPrefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't ref ContentSettingsStore if !ENABLE_EXTENSIONS Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/shell/browser/shell_extensions_browser_client.h" 5 #include "apps/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include "apps/common/api/generated_api.h" 7 #include "apps/common/api/generated_api.h"
8 #include "apps/shell/browser/shell_app_sorting.h" 8 #include "apps/shell/browser/shell_app_sorting.h"
9 #include "apps/shell/browser/shell_extension_system_factory.h" 9 #include "apps/shell/browser/shell_extension_system_factory.h"
10 #include "apps/shell/browser/shell_extension_web_contents_observer.h" 10 #include "apps/shell/browser/shell_extension_web_contents_observer.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const extensions::Extension* extension, 147 const extensions::Extension* extension,
148 content::BrowserContext* context) const { 148 content::BrowserContext* context) const {
149 return false; 149 return false;
150 } 150 }
151 151
152 PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext( 152 PrefService* ShellExtensionsBrowserClient::GetPrefServiceForContext(
153 BrowserContext* context) { 153 BrowserContext* context) {
154 return prefs_.get(); 154 return prefs_.get();
155 } 155 }
156 156
157 void ShellExtensionsBrowserClient::GetEarlyExtensionPrefsObservers(
158 content::BrowserContext* context,
159 std::vector<ExtensionPrefsObserver*>* observers) const {}
160
157 bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts( 161 bool ShellExtensionsBrowserClient::DeferLoadingBackgroundHosts(
158 BrowserContext* context) const { 162 BrowserContext* context) const {
159 return false; 163 return false;
160 } 164 }
161 165
162 bool ShellExtensionsBrowserClient::IsBackgroundPageAllowed( 166 bool ShellExtensionsBrowserClient::IsBackgroundPageAllowed(
163 BrowserContext* context) const { 167 BrowserContext* context) const {
164 return true; 168 return true;
165 } 169 }
166 170
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Generated APIs from lower-level modules. 205 // Generated APIs from lower-level modules.
202 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry); 206 extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry);
203 apps::api::GeneratedFunctionRegistry::RegisterAll(registry); 207 apps::api::GeneratedFunctionRegistry::RegisterAll(registry);
204 208
205 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs 209 // TODO(rockot): Remove dependency on src/chrome once we have some core APIs
206 // moved out. See http://crbug.com/349042. 210 // moved out. See http://crbug.com/349042.
207 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry); 211 extensions::api::GeneratedFunctionRegistry::RegisterAll(registry);
208 } 212 }
209 213
210 } // namespace extensions 214 } // namespace extensions
OLDNEW
« no previous file with comments | « apps/shell/browser/shell_extensions_browser_client.h ('k') | chrome/browser/content_settings/host_content_settings_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698