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

Unified Diff: chrome/browser/net/sdch_dictionary_fetcher.cc

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares Created 9 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/net/sdch_dictionary_fetcher.cc
===================================================================
--- chrome/browser/net/sdch_dictionary_fetcher.cc (revision 106929)
+++ chrome/browser/net/sdch_dictionary_fetcher.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/profiles/profile.h"
+#include "content/common/net/url_fetcher.h"
#include "net/url_request/url_request_status.h"
SdchDictionaryFetcher::SdchDictionaryFetcher()
@@ -73,9 +74,9 @@
void SdchDictionaryFetcher::OnURLFetchComplete(const URLFetcher* source) {
if ((200 == source->response_code()) &&
(source->status().status() == net::URLRequestStatus::SUCCESS)) {
- net::SdchManager::Global()->AddSdchDictionary(
- source->GetResponseStringRef(),
- source->url());
+ std::string data;
+ source->GetResponseAsString(&data);
+ net::SdchManager::Global()->AddSdchDictionary(data, source->url());
}
current_fetch_.reset(NULL);
ScheduleDelayedRun();

Powered by Google App Engine
This is Rietveld 408576698