diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-26 18:38:03 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-26 18:38:03 +0000 |
commit | e711c4dded8a24f780c039e545d7378937e1388b (patch) | |
tree | 3959022cc4a51e97dfaef007cbce1cb52bbb7b9e | |
parent | 588deb653812e8c77941797997e2e6750c330a93 (diff) | |
download | chromium_src-e711c4dded8a24f780c039e545d7378937e1388b.zip chromium_src-e711c4dded8a24f780c039e545d7378937e1388b.tar.gz chromium_src-e711c4dded8a24f780c039e545d7378937e1388b.tar.bz2 |
Change made based on comment in previous CL (that had already landed).
Add extra check on received dictionary status before saving it for use
r=kmixter,openvcdiff
Review URL: http://codereview.chromium.org/4285
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2633 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/net/sdch_dictionary_fetcher.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/net/sdch_dictionary_fetcher.cc b/chrome/browser/net/sdch_dictionary_fetcher.cc index 1b5c21c..3a36ff7 100644 --- a/chrome/browser/net/sdch_dictionary_fetcher.cc +++ b/chrome/browser/net/sdch_dictionary_fetcher.cc @@ -38,7 +38,7 @@ void SdchDictionaryFetcher::OnURLFetchComplete(const URLFetcher* source, int response_code, const ResponseCookies& cookies, const std::string& data) { - if (200 == response_code) + if ((200 == response_code) && (status.status() == URLRequestStatus::SUCCESS)) SdchManager::Global()->AddSdchDictionary(data, url); current_fetch_.reset(NULL); ScheduleDelayedRun(); |