Chromium Code Reviews| Index: chrome/browser/profile.cc |
| =================================================================== |
| --- chrome/browser/profile.cc (revision 8772) |
| +++ chrome/browser/profile.cc (working copy) |
| @@ -105,8 +105,6 @@ |
| : prefs_(prefs) { |
| cookie_store_ = NULL; |
| - // setup user agent |
| - user_agent_ = webkit_glue::GetUserAgent(); |
| // set up Accept-Language and Accept-Charset header values |
| // TODO(jungshik) : This may slow down http requests. Perhaps, |
| // we have to come up with a better way to set up these values. |
| @@ -156,6 +154,11 @@ |
| prefs_->AddPrefObserver(prefs::kCookieBehavior, this); |
| } |
| + const std::string& GetUserAgent( |
|
darin (slow to review)
2009/01/28 09:15:01
nit: the line break here should probably be remove
|
| + const GURL& url) const { |
| + return webkit_glue::GetUserAgent(url); |
| + } |
| + |
| // NotificationObserver implementation. |
| virtual void Observe(NotificationType type, |
| const NotificationSource& source, |
| @@ -251,7 +254,6 @@ |
| cookie_store_ = new net::CookieMonster; |
| cookie_policy_.SetType(net::CookiePolicy::FromInt( |
| prefs_->GetInteger(prefs::kCookieBehavior))); |
| - user_agent_ = original_context_->user_agent(); |
| accept_language_ = original_context_->accept_language(); |
| accept_charset_ = original_context_->accept_charset(); |
| is_off_the_record_ = true; |