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

Unified Diff: chrome/browser/views/frame/browser_view.cc

Issue 3175037: Add a flag for the showing the Page Info dialog as a bubble. This adds stubs for all platforms. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: gyp change Created 10 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 | « chrome/browser/gtk/page_info_window_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_view.cc
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index 39c19204c9042d49ddb05d1cc25c3a9362922e4a..04fa4e7a0efc98741ede1cc6dd321c585d467520 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -1265,11 +1265,11 @@ void BrowserView::ShowPageInfo(Profile* profile,
parent = GetNormalBrowserWindowForBrowser(browser(), profile);
#endif // defined(OS_CHROMEOS)
-#if defined(OS_WINDOWS)
- browser::ShowPageInfoBubble(parent, profile, url, ssl, show_history);
-#else
- browser::ShowPageInfo(parent, profile, url, ssl, show_history);
-#endif
+ const CommandLine* command_line(CommandLine::ForCurrentProcess());
+ if (command_line->HasSwitch(switches::kEnableNewPageInfoBubble))
+ browser::ShowPageInfoBubble(parent, profile, url, ssl, show_history);
+ else
+ browser::ShowPageInfo(parent, profile, url, ssl, show_history);
}
void BrowserView::ShowAppMenu() {
« no previous file with comments | « chrome/browser/gtk/page_info_window_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698