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

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

Issue 11052019: <browser> Make new implementation the default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove flag from chrome://flags, add platform app check for both implementation. 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 3fb9851346ff26583fd2e4556b87a70779b6b4e1..5b645c5132531b059bd2ee581381c40328945440 100644
--- a/chrome/renderer/extensions/dispatcher.cc
+++ b/chrome/renderer/extensions/dispatcher.cc
@@ -692,7 +692,11 @@ void Dispatcher::PopulateSourceMap() {
source_map_.RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS);
// Platform app sources that are not API-specific..
- source_map_.RegisterSource("browserTag", IDR_BROWSER_TAG_JS);
+ const CommandLine& command_line = *(CommandLine::ForCurrentProcess());
+ if (command_line.HasSwitch(switches::kEnableBrowserPluginOldImplementation))
+ source_map_.RegisterSource("browserTag", IDR_BROWSER_TAG_OLD_JS);
+ else
+ source_map_.RegisterSource("browserTag", IDR_BROWSER_TAG_JS);
source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS);
source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS);
}
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/resources/extensions/browser_tag.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698