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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2746043003: Fix user agent overridding with PlzNavigate. (Closed)
Patch Set: without PlzNavigate Created 3 years, 9 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index f8910b4bb042c1d641c669f7c47f640208a757d5..20fdfedf77e2be5dfdba49c2b84914cb77d0d272 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3426,6 +3426,10 @@ bool WebContentsImpl::ShouldPreserveAbortedURLs() {
return delegate_->ShouldPreserveAbortedURLs(this);
}
+const std::string& WebContentsImpl::GetNavigationUserAgentOverride() {
+ return renderer_preferences_.user_agent_override;
+}
+
void WebContentsImpl::DidNavigateMainFramePreCommit(
bool navigation_is_within_page) {
// Ensure fullscreen mode is exited before committing the navigation to a

Powered by Google App Engine
This is Rietveld 408576698