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

Unified Diff: chrome/browser/about_flags.cc

Issue 12792005: Allow extensions on chrome:// URLs, when flag is set and permission is explicitly requested (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 7 years, 9 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/app/generated_resources.grd ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 9ef2d43cd91047a8c4bfc52bf2edce44eaf0b06d..ece80ab847482a036efc16b16bb98076530a2390 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -473,6 +473,13 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(switches::kEnableExperimentalExtensionApis)
},
{
+ "extensions-on-chrome-urls",
+ IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_NAME,
+ IDS_FLAGS_EXTENSIONS_ON_CHROME_URLS_DESCRIPTION,
+ kOsAll,
+ SINGLE_VALUE_TYPE(switches::kExtensionsOnChromeURLs)
+ },
+ {
"action-box",
IDS_FLAGS_ACTION_BOX_NAME,
IDS_FLAGS_ACTION_BOX_DESCRIPTION,
@@ -1616,6 +1623,7 @@ void FlagsState::ConvertFlagsToSwitches(
for (size_t i = 0; i < num_experiments; ++i) {
const Experiment& e = experiments[i];
if (e.type == Experiment::SINGLE_VALUE) {
+ LOG(INFO) << "about to SetFlagToSwitchMapping for " << e.internal_name;
SetFlagToSwitchMapping(e.internal_name, e.command_line_switch,
e.command_line_value, &name_to_switch_map);
} else if (e.type == Experiment::MULTI_VALUE) {
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698