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

Side by Side Diff: components/variations/variations_service_client.h

Issue 1297193002: Move VariationsRegistrySyncerWin to ChromeVariationsServiceClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build harder Created 5 years, 4 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 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 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_
6 #define COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace chrome_variations { 10 namespace chrome_variations {
11 11
12 // An abstraction of operations that depend on the embedder's (e.g. Chrome) 12 // An abstraction of operations that depend on the embedder's (e.g. Chrome)
13 // environment. 13 // environment.
14 class VariationsServiceClient { 14 class VariationsServiceClient {
15 public: 15 public:
16 virtual ~VariationsServiceClient() {} 16 virtual ~VariationsServiceClient() {}
17 17
18 // Returns the current application locale (e.g. "en-US"). 18 // Returns the current application locale (e.g. "en-US").
19 virtual std::string GetApplicationLocale() = 0; 19 virtual std::string GetApplicationLocale() = 0;
20
21 // Called from VariationsService::PerformInitialStartup().
22 virtual void OnInitialStartup() {}
20 }; 23 };
21 24
22 } // namespace chrome_variations 25 } // namespace chrome_variations
23 26
24 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_ 27 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698