diff options
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_profile_impl.cc | 9 | ||||
-rw-r--r-- | chrome/browser/automation/automation_profile_impl.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/automation/automation_profile_impl.cc b/chrome/browser/automation/automation_profile_impl.cc index 1cba8d6..7ea154c 100644 --- a/chrome/browser/automation/automation_profile_impl.cc +++ b/chrome/browser/automation/automation_profile_impl.cc @@ -113,10 +113,11 @@ void AutomationProfileImpl::Initialize(Profile* original_profile, original_profile_ = original_profile; URLRequestContext* original_context = original_profile_->GetRequestContext(); - net::CookieStore* original_cookie_store = original_context->cookie_store(); - alternate_cookie_store_.reset(new AutomationCookieStore(this, - original_cookie_store, - automation_client)); + scoped_refptr<net::CookieStore> original_cookie_store = + original_context->cookie_store(); + alternate_cookie_store_ = new AutomationCookieStore(this, + original_cookie_store, + automation_client); alternate_reqeust_context_ = new AutomationURLRequestContext( original_context, alternate_cookie_store_.get()); } diff --git a/chrome/browser/automation/automation_profile_impl.h b/chrome/browser/automation/automation_profile_impl.h index 7a22fc3..c9aedbe 100644 --- a/chrome/browser/automation/automation_profile_impl.h +++ b/chrome/browser/automation/automation_profile_impl.h @@ -202,7 +202,7 @@ class AutomationProfileImpl : public Profile { protected: Profile* original_profile_; - scoped_ptr<net::CookieStore> alternate_cookie_store_; + scoped_refptr<net::CookieStore> alternate_cookie_store_; scoped_refptr<URLRequestContext> alternate_reqeust_context_; int tab_handle_; |