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

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

Issue 9545005: Disable storing cookies from URLFetchers that run with a profile's cookie jar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
diff --git a/chrome/browser/importer/toolbar_importer.cc b/chrome/browser/importer/toolbar_importer.cc
index 0c7adba4cec9ea5dbeaa84c3c1d9627961f9d175..118c5eb3a73c4bb7b8c305b220189f24b35c742b 100644
--- a/chrome/browser/importer/toolbar_importer.cc
+++ b/chrome/browser/importer/toolbar_importer.cc
@@ -19,6 +19,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/common/url_fetcher.h"
#include "grit/generated_resources.h"
+#include "net/base/load_flags.h"
using content::BrowserThread;
@@ -213,6 +214,7 @@ void Toolbar5Importer::GetAuthenticationFromServer() {
token_fetcher_ = content::URLFetcher::Create(
url, content::URLFetcher::GET, this);
token_fetcher_->SetRequestContext(request_context_getter_.get());
+ token_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
token_fetcher_->Start();
}
@@ -247,6 +249,7 @@ void Toolbar5Importer::GetBookmarkDataFromServer(const std::string& response) {
data_fetcher_ = content::URLFetcher::Create(
url, content::URLFetcher::GET, this);
data_fetcher_->SetRequestContext(request_context_getter_.get());
+ data_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
data_fetcher_->Start();
}

Powered by Google App Engine
This is Rietveld 408576698