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

Unified Diff: chrome/renderer/extensions/dispatcher.cc

Issue 11233065: Rename <browser> shim to <webview> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed WebViewTest.Shim. Thanks Mihai! Created 8 years, 2 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/renderer/extensions/dispatcher.cc
diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc
index eab2397df1287c4980a3062c15bf9a7c46c5b7dc..2741d99dc2567640798abb6b63aa6ace5e8ee7d5 100644
--- a/chrome/renderer/extensions/dispatcher.cc
+++ b/chrome/renderer/extensions/dispatcher.cc
@@ -682,9 +682,9 @@ void Dispatcher::PopulateSourceMap() {
// Platform app sources that are not API-specific..
const CommandLine& command_line = *(CommandLine::ForCurrentProcess());
if (command_line.HasSwitch(switches::kEnableBrowserPluginOldImplementation))
- source_map_.RegisterSource("browserTag", IDR_BROWSER_TAG_OLD_JS);
+ source_map_.RegisterSource("webview", IDR_WEB_VIEW_OLD_JS);
else
- source_map_.RegisterSource("browserTag", IDR_BROWSER_TAG_JS);
+ source_map_.RegisterSource("webview", IDR_WEB_VIEW_JS);
source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS);
source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS);
}
@@ -811,8 +811,8 @@ void Dispatcher::DidCreateScriptContext(
module_system->Require("platformApp");
if (context_type == Feature::BLESSED_EXTENSION_CONTEXT &&
- extension->HasAPIPermission(APIPermission::kBrowserTag)) {
- module_system->Require("browserTag");
+ extension->HasAPIPermission(APIPermission::kWebView)) {
+ module_system->Require("webview");
}
context->set_module_system(module_system.Pass());

Powered by Google App Engine
This is Rietveld 408576698