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

Side by Side Diff: chromecast/browser/metrics/cast_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
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 6 #define CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 static scoped_ptr<CastMetricsServiceClient> Create( 44 static scoped_ptr<CastMetricsServiceClient> Create(
45 base::TaskRunner* io_task_runner, 45 base::TaskRunner* io_task_runner,
46 PrefService* pref_service, 46 PrefService* pref_service,
47 net::URLRequestContextGetter* request_context); 47 net::URLRequestContextGetter* request_context);
48 48
49 void Initialize(CastService* cast_service); 49 void Initialize(CastService* cast_service);
50 void Finalize(); 50 void Finalize();
51 51
52 // metrics::MetricsServiceClient implementation: 52 // metrics::MetricsServiceClient implementation:
53 void SetMetricsClientId(const std::string& client_id) override; 53 void SetMetricsClientId(const std::string& client_id) override;
54 void OnRecordingDisabled() override;
54 bool IsOffTheRecordSessionActive() override; 55 bool IsOffTheRecordSessionActive() override;
55 int32_t GetProduct() override; 56 int32_t GetProduct() override;
56 std::string GetApplicationLocale() override; 57 std::string GetApplicationLocale() override;
57 bool GetBrand(std::string* brand_code) override; 58 bool GetBrand(std::string* brand_code) override;
58 ::metrics::SystemProfileProto::Channel GetChannel() override; 59 ::metrics::SystemProfileProto::Channel GetChannel() override;
59 std::string GetVersionString() override; 60 std::string GetVersionString() override;
60 void OnLogUploadComplete() override; 61 void OnLogUploadComplete() override;
61 void StartGatheringMetrics(const base::Closure& done_callback) override; 62 void StartGatheringMetrics(const base::Closure& done_callback) override;
62 void CollectFinalMetrics(const base::Closure& done_callback) override; 63 void CollectFinalMetrics(const base::Closure& done_callback) override;
63 scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader( 64 scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 scoped_ptr< ::metrics::MetricsService> metrics_service_; 97 scoped_ptr< ::metrics::MetricsService> metrics_service_;
97 net::URLRequestContextGetter* const request_context_; 98 net::URLRequestContextGetter* const request_context_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 100 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
100 }; 101 };
101 102
102 } // namespace metrics 103 } // namespace metrics
103 } // namespace chromecast 104 } // namespace chromecast
104 105
105 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 106 #endif // CHROMECAST_BROWSER_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | chromecast/browser/metrics/cast_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698