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

Unified Diff: chrome/browser/ui/browser_tabrestore.h

Issue 10827168: Fix user agent override restore pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Nit addressing Created 8 years, 4 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/browser_tabrestore.h
diff --git a/chrome/browser/ui/browser_tabrestore.h b/chrome/browser/ui/browser_tabrestore.h
index 9dfddfb03408eebafc93245a8630749aa6b6a53c..a951a7c462a96f1936c5ca2d80f6399ff54d5e70 100644
--- a/chrome/browser/ui/browser_tabrestore.h
+++ b/chrome/browser/ui/browser_tabrestore.h
@@ -31,7 +31,9 @@ int GetIndexForInsertionDuringRestore(Browser* browser, int relative_index);
// non-empty the tab is an app tab and |extension_app_id| is the id of the
// extension. If |pin| is true and |tab_index|/ is the last pinned tab, then
// the newly created tab is pinned. If |from_last_session| is true,
-// |navigations| are from the previous session.
+// |navigations| are from the previous session. |user_agent_override| contains
+// the string being used as the user agent for all of the tab's navigations when
+// the regular user agent is overridden.
content::WebContents* AddRestoredTab(
Browser* browser,
const std::vector<TabNavigation>& navigations,
@@ -41,7 +43,8 @@ content::WebContents* AddRestoredTab(
bool select,
bool pin,
bool from_last_session,
- content::SessionStorageNamespace* storage_namespace);
+ content::SessionStorageNamespace* storage_namespace,
+ const std::string& user_agent_override);
// Replaces the state of the currently selected tab with the session
// history restored from the SessionRestore system.
@@ -51,7 +54,8 @@ void ReplaceRestoredTab(
int selected_navigation,
bool from_last_session,
const std::string& extension_app_id,
- content::SessionStorageNamespace* session_storage_namespace);
+ content::SessionStorageNamespace* session_storage_namespace,
+ const std::string& user_agent_override);
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698