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

Unified Diff: components/variations/service/variations_service.h

Issue 1363243004: Allow embedders to share code to override UI strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: components/variations/service/variations_service.h
diff --git a/components/variations/service/variations_service.h b/components/variations/service/variations_service.h
index 80f9de191ffa179a2b54b777a9b426ac98343404..def6124eed20fa139976b82dac3c103f56523809 100644
--- a/components/variations/service/variations_service.h
+++ b/components/variations/service/variations_service.h
@@ -15,6 +15,7 @@
#include "base/observer_list.h"
#include "base/threading/thread_checker.h"
#include "base/time/time.h"
+#include "components/variations/service/ui_string_overrider.h"
#include "components/variations/service/variations_service_client.h"
#include "components/variations/variations_request_scheduler.h"
#include "components/variations/variations_seed_simulator.h"
@@ -128,7 +129,8 @@ class VariationsService
scoped_ptr<VariationsServiceClient> client,
PrefService* local_state,
metrics::MetricsStateManager* state_manager,
- const char* disable_network_switch);
+ const char* disable_network_switch,
+ const UIStringOverrider& ui_string_overrider);
// Factory method for creating a VariationsService in a testing context.
static scoped_ptr<VariationsService> CreateForTesting(
@@ -168,7 +170,8 @@ class VariationsService
scoped_ptr<VariationsServiceClient> client,
scoped_ptr<web_resource::ResourceRequestAllowedNotifier> notifier,
PrefService* local_state,
- metrics::MetricsStateManager* state_manager);
+ metrics::MetricsStateManager* state_manager,
+ const UIStringOverrider& ui_string_overrider);
private:
FRIEND_TEST_ALL_PREFIXES(VariationsServiceTest, Observer);
@@ -229,6 +232,7 @@ class VariationsService
const std::string& latest_country);
scoped_ptr<VariationsServiceClient> client_;
+ UIStringOverrider ui_string_overrider_;
// The pref service used to store persist the variations seed.
PrefService* local_state_;

Powered by Google App Engine
This is Rietveld 408576698