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