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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 2248793002: Remove OnRecordingDisabled() metrics client interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add helper function Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static std::unique_ptr<ChromeMetricsServiceClient> Create( 53 static std::unique_ptr<ChromeMetricsServiceClient> Create(
54 metrics::MetricsStateManager* state_manager, 54 metrics::MetricsStateManager* state_manager,
55 PrefService* local_state); 55 PrefService* local_state);
56 56
57 // Registers local state prefs used by this class. 57 // Registers local state prefs used by this class.
58 static void RegisterPrefs(PrefRegistrySimple* registry); 58 static void RegisterPrefs(PrefRegistrySimple* registry);
59 59
60 // metrics::MetricsServiceClient: 60 // metrics::MetricsServiceClient:
61 metrics::MetricsService* GetMetricsService() override; 61 metrics::MetricsService* GetMetricsService() override;
62 void SetMetricsClientId(const std::string& client_id) override; 62 void SetMetricsClientId(const std::string& client_id) override;
63 void OnRecordingDisabled() override;
64 bool IsOffTheRecordSessionActive() override; 63 bool IsOffTheRecordSessionActive() override;
65 int32_t GetProduct() override; 64 int32_t GetProduct() override;
66 std::string GetApplicationLocale() override; 65 std::string GetApplicationLocale() override;
67 bool GetBrand(std::string* brand_code) override; 66 bool GetBrand(std::string* brand_code) override;
68 metrics::SystemProfileProto::Channel GetChannel() override; 67 metrics::SystemProfileProto::Channel GetChannel() override;
69 std::string GetVersionString() override; 68 std::string GetVersionString() override;
70 void OnLogUploadComplete() override; 69 void OnLogUploadComplete() override;
71 void InitializeSystemProfileMetrics( 70 void InitializeSystemProfileMetrics(
72 const base::Closure& done_callback) override; 71 const base::Closure& done_callback) override;
73 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 72 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Whether this client has already uploaded profiler data during this session. 227 // Whether this client has already uploaded profiler data during this session.
229 // Profiler data is uploaded at most once per session. 228 // Profiler data is uploaded at most once per session.
230 bool has_uploaded_profiler_data_; 229 bool has_uploaded_profiler_data_;
231 230
232 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 231 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
233 232
234 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 233 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
235 }; 234 };
236 235
237 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 236 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698