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

Unified Diff: chrome/browser/metrics/variations/chrome_variations_service_client.h

Issue 1417503010: Variations seed is pulled from the Java application on the first launch of Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fixes according to code review comments Created 5 years, 1 month 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/metrics/variations/chrome_variations_service_client.h
diff --git a/chrome/browser/metrics/variations/chrome_variations_service_client.h b/chrome/browser/metrics/variations/chrome_variations_service_client.h
index 8abe72ef7697f13a361ed9b8b326784733065f56..a8a72b9de9f64bd7473f80b9ea9b0cd52d1db3d8 100644
--- a/chrome/browser/metrics/variations/chrome_variations_service_client.h
+++ b/chrome/browser/metrics/variations/chrome_variations_service_client.h
@@ -5,8 +5,17 @@
#ifndef CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_
#define CHROME_BROWSER_METRICS_VARIATIONS_CHROME_VARIATIONS_SERVICE_CLIENT_H_
+#include <string>
+
#include "base/basictypes.h"
+#include "base/bind.h"
+
+#if defined(OS_ANDROID)
Bernhard Bauer 2015/11/03 09:44:49 Conditional includes go after regular includes (or
Alexander Agulenko 2015/11/04 08:00:58 Done.
+#include "chrome/browser/android/preferences/pref_service_bridge.h"
+#endif // OS_ANDROID
+
#include "components/variations/service/variations_service_client.h"
+#include "components/variations/variations_seed_store.h"
#if defined(OS_WIN)
#include "chrome/browser/metrics/variations/variations_registry_syncer_win.h"
@@ -31,6 +40,11 @@ class ChromeVariationsServiceClient
bool OverridesRestrictParameter(std::string* parameter) override;
void OnInitialStartup() override;
+#if defined(OS_ANDROID)
+ base::Callback<void(std::string*, std::string*, std::string*)>
+ GetVariationsFirstRunSeedCallback() override;
+#endif // OS_ANDROID
+
private:
#if defined(OS_WIN)
// Starts syncing Google Update Variation IDs with the registry.

Powered by Google App Engine
This is Rietveld 408576698