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

Unified Diff: components/doodle/doodle_fetcher_impl.h

Issue 2798033002: [Doodle] Allow overriding the API URL via a fieldtrial param (Closed)
Patch Set: .name Created 3 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
« no previous file with comments | « chrome/browser/doodle/doodle_service_factory.cc ('k') | components/doodle/doodle_fetcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/doodle/doodle_fetcher_impl.h
diff --git a/components/doodle/doodle_fetcher_impl.h b/components/doodle/doodle_fetcher_impl.h
index 463570c5f0d37a0b6df8d650adbae89137a4a123..07f4f0129eb7fbdcf750a66b21d85dfe9530c1bd 100644
--- a/components/doodle/doodle_fetcher_impl.h
+++ b/components/doodle/doodle_fetcher_impl.h
@@ -46,7 +46,8 @@ class DoodleFetcherImpl : public DoodleFetcher, public net::URLFetcherDelegate {
scoped_refptr<net::URLRequestContextGetter> download_context,
GoogleURLTracker* google_url_tracker,
const ParseJSONCallback& json_parsing_callback,
- bool gray_background);
+ bool gray_background,
+ const base::Optional<std::string>& override_url);
~DoodleFetcherImpl() override;
// Fetches a doodle asynchronously. The |callback| is called with a
@@ -83,6 +84,7 @@ class DoodleFetcherImpl : public DoodleFetcher, public net::URLFetcherDelegate {
GoogleURLTracker* google_url_tracker_;
ParseJSONCallback json_parsing_callback_;
const bool gray_background_;
+ const base::Optional<std::string> override_url_;
std::vector<FinishedCallback> callbacks_;
std::unique_ptr<net::URLFetcher> fetcher_;
« no previous file with comments | « chrome/browser/doodle/doodle_service_factory.cc ('k') | components/doodle/doodle_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698