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

Unified Diff: chrome/browser/extensions/chrome_extensions_browser_client.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/chrome_extensions_browser_client.cc
diff --git a/chrome/browser/extensions/chrome_extensions_browser_client.cc b/chrome/browser/extensions/chrome_extensions_browser_client.cc
index d6d27c2b97ae689289af8ec275ac0b1c3be21329..1dc12991a317dbaeada0bac5d5ac83dce7518335 100644
--- a/chrome/browser/extensions/chrome_extensions_browser_client.cc
+++ b/chrome/browser/extensions/chrome_extensions_browser_client.cc
@@ -128,7 +128,7 @@ bool ChromeExtensionsBrowserClient::IsExtensionIncognitoEnabled(
}
bool ChromeExtensionsBrowserClient::CanExtensionCrossIncognito(
- const extensions::Extension* extension,
+ const Extension* extension,
content::BrowserContext* context) const {
return IsGuestSession(context)
|| util::CanCrossIncognito(extension, context);
@@ -243,23 +243,20 @@ ChromeExtensionsBrowserClient::GetExtensionSystemFactory() {
void ChromeExtensionsBrowserClient::RegisterExtensionFunctions(
ExtensionFunctionRegistry* registry) const {
// Preferences.
- registry->RegisterFunction<extensions::GetPreferenceFunction>();
- registry->RegisterFunction<extensions::SetPreferenceFunction>();
- registry->RegisterFunction<extensions::ClearPreferenceFunction>();
+ registry->RegisterFunction<GetPreferenceFunction>();
+ registry->RegisterFunction<SetPreferenceFunction>();
+ registry->RegisterFunction<ClearPreferenceFunction>();
// Direct Preference Access for Component Extensions.
- registry->RegisterFunction<
- extensions::chromedirectsetting::GetDirectSettingFunction>();
- registry->RegisterFunction<
- extensions::chromedirectsetting::SetDirectSettingFunction>();
- registry->RegisterFunction<
- extensions::chromedirectsetting::ClearDirectSettingFunction>();
+ registry->RegisterFunction<chromedirectsetting::GetDirectSettingFunction>();
+ registry->RegisterFunction<chromedirectsetting::SetDirectSettingFunction>();
+ registry->RegisterFunction<chromedirectsetting::ClearDirectSettingFunction>();
// Generated APIs from lower-level modules.
- extensions::core_api::GeneratedFunctionRegistry::RegisterAll(registry);
+ api::GeneratedFunctionRegistry::RegisterAll(registry);
// Generated APIs from Chrome.
- extensions::api::GeneratedFunctionRegistry::RegisterAll(registry);
+ api::ChromeGeneratedFunctionRegistry::RegisterAll(registry);
}
void ChromeExtensionsBrowserClient::RegisterMojoServices(
@@ -269,11 +266,10 @@ void ChromeExtensionsBrowserClient::RegisterMojoServices(
RegisterChromeServicesForFrame(render_frame_host, extension);
}
-scoped_ptr<extensions::RuntimeAPIDelegate>
+scoped_ptr<RuntimeAPIDelegate>
ChromeExtensionsBrowserClient::CreateRuntimeAPIDelegate(
content::BrowserContext* context) const {
- return scoped_ptr<extensions::RuntimeAPIDelegate>(
- new ChromeRuntimeAPIDelegate(context));
+ return scoped_ptr<RuntimeAPIDelegate>(new ChromeRuntimeAPIDelegate(context));
}
const ComponentExtensionResourceManager*
@@ -332,7 +328,7 @@ ChromeExtensionsBrowserClient::GetExtensionWebContentsObserver(
void ChromeExtensionsBrowserClient::ReportError(
content::BrowserContext* context,
scoped_ptr<ExtensionError> error) {
- extensions::ErrorConsole::Get(context)->ReportError(error.Pass());
+ ErrorConsole::Get(context)->ReportError(error.Pass());
}
void ChromeExtensionsBrowserClient::CleanUpWebView(int embedder_process_id,
« no previous file with comments | « chrome/browser/extensions/chrome_extensions_browser_client.h ('k') | chrome/browser/extensions/display_info_provider_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698