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

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

Issue 2644663003: Offer to open the startup pages after a crash. (Closed)
Patch Set: Rebase Created 3 years, 11 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.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc
index 7879306ef5fdf0b196f9cf35c740219a17c647df..ce566de36350dd54ec99fe639707588a58f23fd0 100644
--- a/chrome/browser/ui/startup/startup_browser_creator.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator.cc
@@ -900,6 +900,22 @@ void StartupBrowserCreator::ProcessCommandLineAlreadyRunning(
}
// static
+void StartupBrowserCreator::OpenStartupPages(Browser* browser,
+ bool process_startup) {
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
+ chrome::startup::IsFirstRun is_first_run =
+ first_run::IsChromeFirstRun() ? chrome::startup::IS_FIRST_RUN
+ : chrome::startup::IS_NOT_FIRST_RUN;
+ StartupBrowserCreatorImpl startup_browser_creator_impl(
+ base::FilePath(), command_line, is_first_run);
+ SessionStartupPref session_startup_pref =
+ StartupBrowserCreator::GetSessionStartupPref(command_line,
+ browser->profile());
+ startup_browser_creator_impl.OpenURLsInBrowser(browser, process_startup,
+ session_startup_pref.urls);
+}
+
+// static
bool StartupBrowserCreator::ActivatedProfile() {
return profile_launch_observer.Get().activated_profile();
}
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator.h ('k') | chrome/browser/ui/views/session_crashed_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698