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

Unified Diff: chrome/browser/browser_init.cc

Issue 211036: Linux: Remove linux splash page and printing command line switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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/browser_about_handler.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_init.cc
===================================================================
--- chrome/browser/browser_init.cc (revision 26621)
+++ chrome/browser/browser_init.cc (working copy)
@@ -443,30 +443,6 @@
browser = BrowserList::GetLastActive();
OpenURLsInBrowser(browser, process_startup, urls_to_open);
}
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(TOOLKIT_VIEWS)
- // TODO(port): Remove ifdef when the Linux splash page is not needed.
- const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- // This can mess up UI tests, so only do it when UI tests aren't running.
- if (!parsed_command_line.HasSwitch(switches::kHomePage) &&
- GetURLsFromCommandLine(profile_).empty()) {
- Browser* browser = BrowserList::GetLastActive();
- if (browser) {
- // Only show the splash page if it isn't already showing.
- bool open_splash = true;
- for (int i = 0; i < browser->tab_count(); ++i) {
- if (browser->GetTabContentsAt(i)->GetURL().spec() ==
- "about:linux-splash") {
- open_splash = false;
- }
- }
-
- if (open_splash) {
- browser->OpenURL(GURL("about:linux-splash"), GURL(),
- NEW_FOREGROUND_TAB, PageTransition::START_PAGE);
- }
- }
- }
-#endif
// Check whether we are the default browser.
if (process_startup &&
!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck))
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698