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

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

Issue 2493573002: Make sure that the browser will always restore settings page instead of sign out page after user si… (Closed)
Patch Set: rebase from master Created 4 years, 1 month 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_common_utils.h
diff --git a/chrome/browser/sessions/session_common_utils.h b/chrome/browser/sessions/session_common_utils.h
index e5eea2385830316023d1e62681453369d3fe66bd..08df1c86338857e0f59f84d2b91377e54214b584 100644
--- a/chrome/browser/sessions/session_common_utils.h
+++ b/chrome/browser/sessions/session_common_utils.h
@@ -5,6 +5,10 @@
#ifndef CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_
#define CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_
+namespace sessions {
+struct SessionTab;
+} // namespace sessions
+
class GURL;
// Returns whether sessions code should track a URL for restoring in the context
@@ -12,4 +16,9 @@ class GURL;
// avoid quit or restart loops.
bool ShouldTrackURLForRestore(const GURL& url);
+// Returns the current navigation index from the tab. If current navigation's
+// url is the sign out page and the url of previous one is the setting page,
+// returns the index of previous one.
+int GetNavigationIndexToSelect(const sessions::SessionTab& tab);
+
#endif // CHROME_BROWSER_SESSIONS_SESSION_COMMON_UTILS_H_
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.js ('k') | chrome/browser/sessions/session_common_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698