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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 10834134: Disable the Website Settings UI on Windows by default. It can be enabled by using the flag --enable… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on tot. Created 8 years, 4 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 | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 423efc915ea14d1bdfdb860592384f17b6eef198..8a94a3ba4b2342b4c89e56c0452630590838622d 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -640,18 +640,8 @@ void ShowPageInfo(Browser* browser,
web_contents->GetBrowserContext());
TabContents* tab_contents = TabContents::FromWebContents(web_contents);
-#if defined(OS_WIN)
- bool website_settings_enabled = true;
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableWebsiteSettings))
- website_settings_enabled = false;
-#else
- bool website_settings_enabled = false;
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebsiteSettings))
- website_settings_enabled = true;
-#endif
- if (website_settings_enabled) {
+ switches::kEnableWebsiteSettings)) {
browser->window()->ShowWebsiteSettings(
profile, tab_contents, url, ssl, show_history);
} else {
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698