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

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

Issue 1000203007: Set a "metrics_client_id" crash key instead of "guid" on Mac OS X (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove sentencelet Created 5 years, 9 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Factory function. 51 // Factory function.
52 static scoped_ptr<ChromeMetricsServiceClient> Create( 52 static scoped_ptr<ChromeMetricsServiceClient> Create(
53 metrics::MetricsStateManager* state_manager, 53 metrics::MetricsStateManager* state_manager,
54 PrefService* local_state); 54 PrefService* local_state);
55 55
56 // Registers local state prefs used by this class. 56 // Registers local state prefs used by this class.
57 static void RegisterPrefs(PrefRegistrySimple* registry); 57 static void RegisterPrefs(PrefRegistrySimple* registry);
58 58
59 // metrics::MetricsServiceClient: 59 // metrics::MetricsServiceClient:
60 void SetMetricsClientId(const std::string& client_id) override; 60 void SetMetricsClientId(const std::string& client_id) override;
61 void OnRecordingDisabled() override;
61 bool IsOffTheRecordSessionActive() override; 62 bool IsOffTheRecordSessionActive() override;
62 int32 GetProduct() override; 63 int32 GetProduct() override;
63 std::string GetApplicationLocale() override; 64 std::string GetApplicationLocale() override;
64 bool GetBrand(std::string* brand_code) override; 65 bool GetBrand(std::string* brand_code) override;
65 metrics::SystemProfileProto::Channel GetChannel() override; 66 metrics::SystemProfileProto::Channel GetChannel() override;
66 std::string GetVersionString() override; 67 std::string GetVersionString() override;
67 void OnLogUploadComplete() override; 68 void OnLogUploadComplete() override;
68 void StartGatheringMetrics(const base::Closure& done_callback) override; 69 void StartGatheringMetrics(const base::Closure& done_callback) override;
69 void CollectFinalMetrics(const base::Closure& done_callback) override; 70 void CollectFinalMetrics(const base::Closure& done_callback) override;
70 scoped_ptr<metrics::MetricsLogUploader> CreateUploader( 71 scoped_ptr<metrics::MetricsLogUploader> CreateUploader(
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Callback to determine whether or not a cellular network is currently being 181 // Callback to determine whether or not a cellular network is currently being
181 // used. 182 // used.
182 base::Callback<void(bool*)> cellular_callback_; 183 base::Callback<void(bool*)> cellular_callback_;
183 184
184 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 185 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
185 186
186 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 187 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
187 }; 188 };
188 189
189 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 190 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698