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

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

Issue 10827168: Fix user agent override restore pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing 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/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index c1264ff3e5db11a04914bc7e751372ed234b502d..e38e21ce57842c2ab41351496ae2feeb8276b1c1 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -593,7 +593,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
selected_index,
true,
tab.extension_app_id,
- NULL);
+ NULL,
+ tab.user_agent_override);
} else {
int tab_index = use_new_window ? 0 : browser->active_index() + 1;
WebContents* web_contents = chrome::AddRestoredTab(
@@ -605,7 +606,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
false, // selected
tab.pinned,
true,
- NULL);
+ NULL,
+ tab.user_agent_override);
// Start loading the tab immediately.
web_contents->GetController().LoadIfNecessary();
}
@@ -904,7 +906,8 @@ class SessionRestoreImpl : public content::NotificationObserver {
false, // select
tab.pinned,
true,
- session_storage_namespace.get());
+ session_storage_namespace.get(),
+ tab.user_agent_override);
// Regression check: check that the tab didn't start loading right away. The
// focused tab will be loaded by Browser, and TabLoader will load the rest.
DCHECK(web_contents->GetController().NeedsReload());

Powered by Google App Engine
This is Rietveld 408576698