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

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

Issue 10170016: Add info about user agent overrides to WebContents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added SessionService saving Created 8 years, 8 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 928b7c1099eebc1cf49d1288a56bf3cc6b492940..13845d6a02374b6b5bc4a0542802108c6b7ba4e5 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -689,6 +689,14 @@ content::WebUI* WebContentsImpl::GetCommittedWebUI() const {
return render_manager_.web_ui();
}
+void WebContentsImpl::SetUserAgentOverride(const std::string& override) {
+ user_agent_override_ = override;
+}
+
+const std::string& WebContentsImpl::GetUserAgentOverride() const {
+ return user_agent_override_;
+}
+
const string16& WebContentsImpl::GetTitle() const {
// Transient entries take precedence. They are used for interstitial pages
// that are shown on top of existing pages.

Powered by Google App Engine
This is Rietveld 408576698