diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-17 20:05:44 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-17 20:05:44 +0000 |
commit | b8430726aee195e69451e031b47e91a9514b0965 (patch) | |
tree | cdb97023d33b544f8d598284d84a94495da649bd /chrome/browser/google_url_tracker.cc | |
parent | 63271da3b3740aadd3bd5d186bf7bd2b33ee6347 (diff) | |
download | chromium_src-b8430726aee195e69451e031b47e91a9514b0965.zip chromium_src-b8430726aee195e69451e031b47e91a9514b0965.tar.gz chromium_src-b8430726aee195e69451e031b47e91a9514b0965.tar.bz2 |
Don't set any cookies as a result of the Google URL Tracker update check. This way, if users clear their cookies and restart, they won't have to wonder why a Google cookie has suddenly mysteriously appeared.
BUG=1204
Review URL: http://codereview.chromium.org/2937
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/google_url_tracker.cc')
-rw-r--r-- | chrome/browser/google_url_tracker.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/google_url_tracker.cc b/chrome/browser/google_url_tracker.cc index be092c6..6bab5ec 100644 --- a/chrome/browser/google_url_tracker.cc +++ b/chrome/browser/google_url_tracker.cc @@ -120,7 +120,11 @@ void GoogleURLTracker::StartFetchIfDesirable() { // run of the browser. fetcher_.reset(new URLFetcher(GURL(kDefaultGoogleHomepage), URLFetcher::HEAD, this)); - fetcher_->set_load_flags(net::LOAD_DISABLE_CACHE); + // We don't want this fetch to affect existing state in the profile. For + // example, if a user has no Google cookies, this automatic check should not + // cause one to be set, lest we alarm the user. + fetcher_->set_load_flags(net::LOAD_DISABLE_CACHE | + net::LOAD_DO_NOT_SAVE_COOKIES); fetcher_->set_request_context(Profile::GetDefaultRequestContext()); fetcher_->Start(); } |