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

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

Issue 2798143004: Fix for URL opening code (Closed)
Patch Set: Fixed opening local file with Chromium on mac while restore session is enabled. File opens in the t… 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..fbca179b4fccf84df96950a4627c0cb8190bedfe 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.h
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.h
@@ -62,6 +62,12 @@ class StartupBrowserCreatorImpl {
bool process_startup,
const std::vector<GURL>& urls);
+ // Opens |urls| after session will be restored.
+ // When startup |urls| are availible and need to be stored for later opening,
+ // StartupBrowserCreatorImpl which will do the job may be not availible yet -
+ // so it better be static.
+ static void OpenURLsAfterSessionRestore(const std::vector<GURL>& urls);
+
private:
FRIEND_TEST_ALL_PREFIXES(BrowserTest, RestorePinnedTabs);
FRIEND_TEST_ALL_PREFIXES(BrowserTest, AppIdSwitch);
@@ -237,6 +243,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