Index: chrome/browser/importer/toolbar_importer.cc |
diff --git a/chrome/browser/importer/toolbar_importer.cc b/chrome/browser/importer/toolbar_importer.cc |
index d95863822f51597e60dda46300b041e1a3e5c348..ac0f9d191abccb4bdf23ba8fb54319010b5c361b 100644 |
--- a/chrome/browser/importer/toolbar_importer.cc |
+++ b/chrome/browser/importer/toolbar_importer.cc |
@@ -17,6 +17,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/libxml_utils.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/common/content_url_request_user_data.h" |
#include "content/public/common/url_fetcher.h" |
#include "grit/generated_resources.h" |
#include "net/base/load_flags.h" |
@@ -214,6 +215,9 @@ void Toolbar5Importer::GetAuthenticationFromServer() { |
token_fetcher_ = content::URLFetcher::Create( |
url, content::URLFetcher::GET, this); |
token_fetcher_->SetRequestContext(request_context_getter_.get()); |
+ // TODO(jochen): Do cookie audit. |
+ token_fetcher_->SetContentURLRequestUserData( |
+ new content::ContentURLRequestUserData()); |
token_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES); |
token_fetcher_->Start(); |
} |
@@ -249,6 +253,9 @@ void Toolbar5Importer::GetBookmarkDataFromServer(const std::string& response) { |
data_fetcher_ = content::URLFetcher::Create( |
url, content::URLFetcher::GET, this); |
data_fetcher_->SetRequestContext(request_context_getter_.get()); |
+ // TODO(jochen): Do cookie audit. |
+ data_fetcher_->SetContentURLRequestUserData( |
+ new content::ContentURLRequestUserData()); |
data_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES); |
data_fetcher_->Start(); |
} |