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

Unified Diff: chrome/browser/importer/toolbar_importer.cc

Issue 258008: Move initialization of ChromeURLRequestContexts to the IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again, just in case Created 11 years, 2 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/importer/toolbar_importer.cc
===================================================================
--- chrome/browser/importer/toolbar_importer.cc (revision 29872)
+++ chrome/browser/importer/toolbar_importer.cc (working copy)
@@ -11,6 +11,7 @@
#include "base/rand_util.h"
#include "chrome/browser/first_run.h"
#include "chrome/browser/importer/importer_bridge.h"
+#include "chrome/browser/net/url_request_context_getter.h"
#include "chrome/common/libxml_utils.h"
#include "grit/generated_resources.h"
#include "net/base/cookie_monster.h"
@@ -25,8 +26,8 @@
static const char* kGoogleDomainSecureCookieId = "SID=";
bool toolbar_importer_utils::IsGoogleGAIACookieInstalled() {
- URLRequestContext* context = Profile::GetDefaultRequestContext();
- net::CookieStore* store = context->cookie_store();
+ net::CookieStore* store =
+ Profile::GetDefaultRequestContext()->GetCookieStore();
GURL url(kGoogleDomainUrl);
net::CookieOptions options;
options.set_include_httponly(); // The SID cookie might be httponly.
« no previous file with comments | « chrome/browser/gtk/options/cookies_view_unittest.cc ('k') | chrome/browser/net/chrome_url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698