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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 11195050: Merge 162279 - If chrome in desktop mode on Windows 8 defers to Windows 8 metro chrome, then we onl… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 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
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
===================================================================
--- chrome/browser/ui/startup/startup_browser_creator_impl.cc (revision 162788)
+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc (working copy)
@@ -621,12 +621,14 @@
std::vector<GURL> adjust_urls = urls_to_open;
if (adjust_urls.empty()) {
AddStartupURLs(&adjust_urls);
+ if (StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser(
+ profile_, adjust_urls))
+ return;
} else if (!command_line_.HasSwitch(switches::kOpenInNewWindow)) {
// Always open a list of urls in a window on the native desktop.
browser = browser::FindBrowserWithProfile(profile_,
chrome::HOST_DESKTOP_TYPE_NATIVE);
}
-
// This will launch a browser; prevent session restore.
in_synchronous_profile_launch = true;
browser = OpenURLsInBrowser(browser, process_startup, adjust_urls);
@@ -997,3 +999,13 @@
backup_show_home_button));
}
}
+
+#if !defined(OS_WIN) || defined(USE_AURA)
+// static
+bool StartupBrowserCreatorImpl::OpenStartupURLsInExistingBrowser(
+ Profile* profile,
+ const std::vector<GURL>& startup_urls) {
+ return false;
+}
+#endif
+
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.h ('k') | chrome/browser/ui/startup/startup_browser_creator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698