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

Unified Diff: chrome/browser/metrics/metrics_services_manager.cc

Issue 1363243004: Allow embedders to share code to override UI strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to test and class and fix typo 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
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/chrome_variations_service_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_services_manager.cc
diff --git a/chrome/browser/metrics/metrics_services_manager.cc b/chrome/browser/metrics/metrics_services_manager.cc
index f6c1f1f117a211dd71db87cf7895716c703c300c..a9816206036b148a08dcd86f4a39b7813cd51b62 100644
--- a/chrome/browser/metrics/metrics_services_manager.cc
+++ b/chrome/browser/metrics/metrics_services_manager.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/metrics/chrome_metrics_service_client.h"
#include "chrome/browser/metrics/metrics_reporting_state.h"
#include "chrome/browser/metrics/variations/chrome_variations_service_client.h"
+#include "chrome/browser/metrics/variations/generated_resources_map.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser_otr_state.h"
@@ -67,7 +68,10 @@ variations::VariationsService* MetricsServicesManager::GetVariationsService() {
if (!variations_service_) {
variations_service_ = variations::VariationsService::Create(
make_scoped_ptr(new ChromeVariationsServiceClient()), local_state_,
- GetMetricsStateManager(), switches::kDisableBackgroundNetworking);
+ GetMetricsStateManager(), switches::kDisableBackgroundNetworking,
+ variations::UIStringOverrider(chrome_variations::kResourceHashes,
+ chrome_variations::kResourceIndices,
+ chrome_variations::kNumResources));
}
return variations_service_.get();
}
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/chrome_variations_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698