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

Unified Diff: content/browser/web_contents/web_contents_impl.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: 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 d5a09dcbb874a55aa40e394cedb5f2975d3edf94..cd97529f293bb7265e0bd6019e15a770b5534f8c 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -793,6 +793,12 @@ void WebContentsImpl::SetUserAgentOverride(const std::string& override) {
NavigationEntry* entry = controller_.GetActiveEntry();
if (is_loading_ && entry != NULL && entry->GetIsOverridingUserAgent())
controller_.ReloadIgnoringCache(true);
+
+ // Send out a notification that the user agent override was changed.
+ content::NotificationService::current()->Notify(
+ content::NOTIFICATION_WEB_CONTENTS_USER_AGENT_OVERRIDE_CHANGED,
+ content::Source<WebContents>(this),
+ content::NotificationService::NoDetails());
}
const std::string& WebContentsImpl::GetUserAgentOverride() const {

Powered by Google App Engine
This is Rietveld 408576698