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

Unified Diff: chrome/common/extensions/chrome_extensions_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
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | extensions/browser/api/alarms/alarm_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/chrome_extensions_client.cc
diff --git a/chrome/common/extensions/chrome_extensions_client.cc b/chrome/common/extensions/chrome_extensions_client.cc
index 686db97323b8a551154e78fc1c65b8d6a616e189..5494871f2b7a1b88e8409a95cae9ef619b39dce2 100644
--- a/chrome/common/extensions/chrome_extensions_client.cc
+++ b/chrome/common/extensions/chrome_extensions_client.cc
@@ -288,17 +288,17 @@ bool ChromeExtensionsClient::IsScriptableURL(
bool ChromeExtensionsClient::IsAPISchemaGenerated(
const std::string& name) const {
// Test from most common to least common.
- return api::GeneratedSchemas::IsGenerated(name) ||
- core_api::GeneratedSchemas::IsGenerated(name);
+ return api::ChromeGeneratedSchemas::IsGenerated(name) ||
+ api::GeneratedSchemas::IsGenerated(name);
}
base::StringPiece ChromeExtensionsClient::GetAPISchema(
const std::string& name) const {
// Test from most common to least common.
- if (api::GeneratedSchemas::IsGenerated(name))
- return api::GeneratedSchemas::Get(name);
+ if (api::ChromeGeneratedSchemas::IsGenerated(name))
+ return api::ChromeGeneratedSchemas::Get(name);
- return core_api::GeneratedSchemas::Get(name);
+ return api::GeneratedSchemas::Get(name);
}
void ChromeExtensionsClient::RegisterAPISchemaResources(
« no previous file with comments | « chrome/common/extensions/api/schemas.gypi ('k') | extensions/browser/api/alarms/alarm_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698