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

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

Issue 187443008: Elim Browser::AppType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add non trusted type test Created 6 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/browser/ui/chrome_pages.h ('k') | chrome/browser/ui/extensions/application_launch.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/chrome_pages.cc
diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc
index 4c8aa34b7f7451da6a3004feb01c43e737311f22..bb713e8925a956fa132b9f6a3c83803ceb254c6c 100644
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -212,21 +212,6 @@ GURL GetSettingsUrl(const std::string& sub_page) {
return GURL(url);
}
-bool IsSettingsWindow(const Browser* browser) {
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableSettingsWindow))
- return false;
- if (browser->is_type_tabbed())
- return false;
- const content::WebContents* web_contents =
- browser->tab_strip_model()->GetWebContentsAt(0);
- if (!web_contents)
- return false;
- GURL url(web_contents->GetURL());
- return (url.SchemeIs(content::kChromeUIScheme) &&
- url.spec().find(chrome::kChromeUISettingsURL) == 0);
-}
-
void ShowSettings(Browser* browser) {
ShowSettingsSubPage(browser, std::string());
}
« no previous file with comments | « chrome/browser/ui/chrome_pages.h ('k') | chrome/browser/ui/extensions/application_launch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698