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

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

Issue 2798143004: Fix for URL opening code (Closed)
Patch Set: Created 3 years, 8 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.h
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.h b/chrome/browser/ui/startup/startup_browser_creator_impl.h
index 7094147882f49397964f3df8924f3f438110fa3c..37e2ccaf4f288296be0a4e4ea103dae7b319aea6 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.h
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.h
@@ -62,6 +62,16 @@ class StartupBrowserCreatorImpl {
bool process_startup,
const std::vector<GURL>& urls);
+ // Opens |urls| after session will be restored.
+ void OpenURLsAfterSessionRestore(Browser* browser,
+ bool process_startup,
+ const std::vector<GURL>& urls);
+ // TODO(eugenebng): this likely have to be refactored before comminting
+ bool WillRestoreSession(Browser* browser,
+ Profile* profile,
+ bool process_startup,
+ const std::vector<GURL>& urls);
+
private:
FRIEND_TEST_ALL_PREFIXES(BrowserTest, RestorePinnedTabs);
FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch);
@@ -237,6 +247,9 @@ class StartupBrowserCreatorImpl {
// Checks whether |profile_| has a reset trigger set.
bool ProfileHasResetTrigger() const;
+ // Open URLs that are saved for delayed opening after restore session
+ void OpenDeferredURLs(Browser* browser);
+
const base::FilePath cur_dir_;
const base::CommandLine& command_line_;
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698