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

Unified Diff: chrome/browser/spellchecker/spelling_service_client_unittest.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 years, 8 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/spellchecker/spelling_service_client_unittest.cc
diff --git a/chrome/browser/spellchecker/spelling_service_client_unittest.cc b/chrome/browser/spellchecker/spelling_service_client_unittest.cc
index 3f2516dd63b2f4b59aa97522e0e1350db4b2664c..09f5ccee7cfba657437d46a13566678cca6124c9 100644
--- a/chrome/browser/spellchecker/spelling_service_client_unittest.cc
+++ b/chrome/browser/spellchecker/spelling_service_client_unittest.cc
@@ -166,13 +166,13 @@ class TestingSpellingServiceClient : public SpellingServiceClient {
}
private:
- net::URLFetcher* CreateURLFetcher(const GURL& url) override {
+ scoped_ptr<net::URLFetcher> CreateURLFetcher(const GURL& url) override {
EXPECT_EQ("https://www.googleapis.com/rpc", url.spec());
fetcher_ = new TestSpellingURLFetcher(0, url, this,
request_type_, request_text_,
request_language_,
response_status_, response_data_);
- return fetcher_;
+ return scoped_ptr<net::URLFetcher>(fetcher_);
}
int request_type_;

Powered by Google App Engine
This is Rietveld 408576698