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

Unified Diff: profile.cc

Issue 19748: Ensure that the proper UA string is set while in incognito mode.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/release_154.next/src/chrome/browser/
Patch Set: Created 11 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: profile.cc
===================================================================
--- profile.cc (revision 9031)
+++ profile.cc (working copy)
@@ -154,8 +154,7 @@
prefs_->AddPrefObserver(prefs::kCookieBehavior, this);
}
- const std::string& GetUserAgent(
- const GURL& url) const {
+ const std::string& GetUserAgent(const GURL& url) const {
return webkit_glue::GetUserAgent(url);
}
@@ -263,6 +262,10 @@
prefs_->AddPrefObserver(prefs::kCookieBehavior, this);
}
+ const std::string& GetUserAgent(const GURL& url) const {
+ return original_context_->GetUserAgent(url);
+ }
+
// Since OffTheRecordProfileImpl maybe be destroyed after destroying
// PrefService, but all PrefService observers are needed to clear in
// before destroying PrefService. So we use to CleanupBeforeDestroy
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698