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

Unified Diff: chrome/browser/tab_contents/spelling_menu_observer.cc

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments 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
« no previous file with comments | « chrome/browser/tab_contents/spelling_menu_observer.h ('k') | chrome/browser/translate/translate_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/spelling_menu_observer.cc
===================================================================
--- chrome/browser/tab_contents/spelling_menu_observer.cc (revision 107061)
+++ chrome/browser/tab_contents/spelling_menu_observer.cc (working copy)
@@ -140,8 +140,8 @@
static const char kSpellingServiceURL[] = SPELLING_SERVICE_URL;
GURL url = GURL(kSpellingServiceURL);
fetcher_.reset(new URLFetcher(url, URLFetcher::POST, this));
- fetcher_->set_request_context(context);
- fetcher_->set_upload_data("application/json", request);
+ fetcher_->SetRequestContext(context);
+ fetcher_->SetUploadData("application/json", request);
fetcher_->Start();
animation_timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(1),
@@ -150,7 +150,8 @@
return true;
}
-void SpellingMenuObserver::OnURLFetchComplete(const URLFetcher* source) {
+void SpellingMenuObserver::OnURLFetchComplete(
+ const content::URLFetcher* source) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
fetcher_.reset();
@@ -160,7 +161,7 @@
// with their suggestions.
std::string data;
source->GetResponseAsString(&data);
- succeeded_ = ParseResponse(source->response_code(), data);
+ succeeded_ = ParseResponse(source->GetResponseCode(), data);
if (!succeeded_)
result_ = l10n_util::GetStringUTF16(IDS_CONTENT_CONTEXT_SPELLING_CORRECT);
« no previous file with comments | « chrome/browser/tab_contents/spelling_menu_observer.h ('k') | chrome/browser/translate/translate_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698