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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 19678004: Move UserScript and Extension switches to top-level extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index ba3f684bab013d4b2b0818ec14f8551550b27135..7887026045e43aa870538a8a99d5ae28b30accf5 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -125,6 +125,7 @@
#include "content/public/common/content_descriptors.h"
#include "extensions/browser/view_type_utils.h"
#include "extensions/common/constants.h"
+#include "extensions/common/switches.h"
#include "grit/generated_resources.h"
#include "grit/ui_resources.h"
#include "net/base/escape.h"
@@ -1387,12 +1388,13 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
autofill::switches::kDisableInteractiveAutocomplete,
autofill::switches::kEnableExperimentalFormFilling,
autofill::switches::kEnableInteractiveAutocomplete,
+ extensions::switches::kAllowLegacyExtensionManifests,
+ extensions::switches::kAllowScriptingGallery,
+ extensions::switches::kExtensionsOnChromeURLs,
switches::kAllowHTTPBackgroundPage,
- switches::kAllowLegacyExtensionManifests,
// TODO(victorhsieh): remove the following flag once we move PPAPI FileIO
// to browser.
switches::kAllowNaClFileHandleAPI,
- switches::kAllowScriptingGallery,
switches::kAppsCheckoutURL,
switches::kAppsGalleryURL,
switches::kCloudPrintServiceURL,
@@ -1411,7 +1413,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
switches::kEnablePasswordGeneration,
switches::kEnablePnacl,
switches::kEnableWatchdog,
- switches::kExtensionsOnChromeURLs,
switches::kMemoryProfiling,
switches::kMessageLoopHistogrammer,
switches::kNoJsRandomness,
@@ -1433,9 +1434,9 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
arraysize(kSwitchNames));
} else if (process_type == switches::kUtilityProcess) {
static const char* const kSwitchNames[] = {
+ extensions::switches::kExtensionsOnChromeURLs,
switches::kAllowHTTPBackgroundPage,
switches::kEnableExperimentalExtensionApis,
- switches::kExtensionsOnChromeURLs,
switches::kWhitelistedExtensionID,
};

Powered by Google App Engine
This is Rietveld 408576698