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

Unified Diff: chrome/browser/sessions/session_restore.h

Issue 2798143004: Fix for URL opening code (Closed)
Patch Set: Added test, fixed opening URL case when browser is already started. 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/sessions/session_restore.h
diff --git a/chrome/browser/sessions/session_restore.h b/chrome/browser/sessions/session_restore.h
index de0a90e9b0ded0599edc02a28b3a1a03a8b84263..2db7bab546ed30fb0f1c4bfb928c158533b6e91c 100644
--- a/chrome/browser/sessions/session_restore.h
+++ b/chrome/browser/sessions/session_restore.h
@@ -101,6 +101,11 @@ class SessionRestore {
static CallbackSubscription RegisterOnSessionRestoredCallback(
const base::Callback<void(int)>& callback);
+ // Add |urls| to URLs-t-open list, so that theey will be opened after session
sky 2017/05/04 23:40:46 URLs-to-open theey->they
eugenebng 2017/05/15 06:17:08 Done.
+ // URLs when session is restored.
+ static void AddURLsToOpen(const Profile* profile,
+ const std::vector<GURL>& urls);
+
private:
SessionRestore();

Powered by Google App Engine
This is Rietveld 408576698