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

Side by Side Diff: chrome/browser/metrics/variations/chrome_variations_service_client.cc

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: Fixes according to latest code review. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/metrics/variations/chrome_variations_service_client.h" 5 #include "chrome/browser/metrics/variations/chrome_variations_service_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/common/channel_info.h" 9 #include "chrome/common/channel_info.h"
10 #include "components/version_info/version_info.h" 10 #include "components/version_info/version_info.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 std::string* parameter) { 72 std::string* parameter) {
73 #if defined(OS_CHROMEOS) 73 #if defined(OS_CHROMEOS)
74 chromeos::CrosSettings::Get()->GetString( 74 chromeos::CrosSettings::Get()->GetString(
75 chromeos::kVariationsRestrictParameter, parameter); 75 chromeos::kVariationsRestrictParameter, parameter);
76 return true; 76 return true;
77 #else 77 #else
78 return false; 78 return false;
79 #endif 79 #endif
80 } 80 }
81 81
82 #if defined(OS_ANDROID)
83 base::Callback<void(std::string*, std::string*, std::string*)>
84 ChromeVariationsServiceClient::GetVariationsFirstRunSeedCallback() {
85 return base::Bind(&PrefServiceBridge::GetVariationsFirstRunSeed);
86 }
87 #endif // OS_ANDROID
88
82 void ChromeVariationsServiceClient::OnInitialStartup() { 89 void ChromeVariationsServiceClient::OnInitialStartup() {
83 #if defined(OS_WIN) 90 #if defined(OS_WIN)
84 StartGoogleUpdateRegistrySync(); 91 StartGoogleUpdateRegistrySync();
85 #endif 92 #endif
86 } 93 }
87 94
88 #if defined(OS_WIN) 95 #if defined(OS_WIN)
89 void ChromeVariationsServiceClient::StartGoogleUpdateRegistrySync() { 96 void ChromeVariationsServiceClient::StartGoogleUpdateRegistrySync() {
90 registry_syncer_.RequestRegistrySync(); 97 registry_syncer_.RequestRegistrySync();
91 } 98 }
92 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698