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

Unified Diff: chrome/browser/interests/interests_fetcher.h

Issue 1396443002: Add the JNI code in order to let Java use the InterestsFetcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/interests/interests_fetcher.h
diff --git a/chrome/browser/interests/interests_fetcher.h b/chrome/browser/interests/interests_fetcher.h
index 4ea31dd3cfa0a8d5a6888171aaf7e633fc80534a..38e1f0febcafbab609d0cb57c9e53b97353b6e7c 100644
--- a/chrome/browser/interests/interests_fetcher.h
+++ b/chrome/browser/interests/interests_fetcher.h
@@ -45,7 +45,8 @@ class InterestsFetcher : public net::URLFetcherDelegate,
double relevance;
};
- using InterestsCallback = base::Callback<void(const std::vector<Interest>&)>;
+ using InterestsCallback =
+ base::Callback<void(scoped_ptr<std::vector<Interest>>)>;
InterestsFetcher(OAuth2TokenService* oauth2_token_service,
const std::string& account_id,
@@ -73,7 +74,8 @@ class InterestsFetcher : public net::URLFetcherDelegate,
scoped_ptr<net::URLFetcher> CreateFetcher();
// Parse the json response.
- std::vector<Interest> ExtractInterests(const std::string& response);
+ scoped_ptr<std::vector<Interest>>
+ ExtractInterests(const std::string& response);
InterestsCallback callback_;
scoped_ptr<net::URLFetcher> fetcher_;
« no previous file with comments | « chrome/browser/interests/android/interests_service.cc ('k') | chrome/browser/interests/interests_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698