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 { |