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

Unified Diff: chrome/browser/automation/automation_profile_impl.cc

Issue 197023: This CL changes the CookieStore obect to be a refcounted object to get a bett... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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: chrome/browser/automation/automation_profile_impl.cc
===================================================================
--- chrome/browser/automation/automation_profile_impl.cc (revision 25474)
+++ chrome/browser/automation/automation_profile_impl.cc (working copy)
@@ -113,10 +113,11 @@
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());
}

Powered by Google App Engine
This is Rietveld 408576698