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

Side by Side Diff: chromecast/metrics/cast_metrics_service_client.h

Issue 573403002: Change UMA proto product field to be an int32. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
6 #define CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 6 #define CHROMECAST_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 24 matching lines...) Expand all
35 virtual ~CastMetricsServiceClient(); 35 virtual ~CastMetricsServiceClient();
36 36
37 static CastMetricsServiceClient* Create( 37 static CastMetricsServiceClient* Create(
38 base::TaskRunner* io_task_runner, 38 base::TaskRunner* io_task_runner,
39 PrefService* pref_service, 39 PrefService* pref_service,
40 net::URLRequestContextGetter* request_context); 40 net::URLRequestContextGetter* request_context);
41 41
42 // metrics::MetricsServiceClient implementation: 42 // metrics::MetricsServiceClient implementation:
43 virtual void SetMetricsClientId(const std::string& client_id) OVERRIDE; 43 virtual void SetMetricsClientId(const std::string& client_id) OVERRIDE;
44 virtual bool IsOffTheRecordSessionActive() OVERRIDE; 44 virtual bool IsOffTheRecordSessionActive() OVERRIDE;
45 virtual int32 GetProduct() OVERRIDE;
45 virtual std::string GetApplicationLocale() OVERRIDE; 46 virtual std::string GetApplicationLocale() OVERRIDE;
46 virtual bool GetBrand(std::string* brand_code) OVERRIDE; 47 virtual bool GetBrand(std::string* brand_code) OVERRIDE;
47 virtual ::metrics::SystemProfileProto::Channel GetChannel() OVERRIDE; 48 virtual ::metrics::SystemProfileProto::Channel GetChannel() OVERRIDE;
48 virtual std::string GetVersionString() OVERRIDE; 49 virtual std::string GetVersionString() OVERRIDE;
49 virtual void OnLogUploadComplete() OVERRIDE; 50 virtual void OnLogUploadComplete() OVERRIDE;
50 virtual void StartGatheringMetrics( 51 virtual void StartGatheringMetrics(
51 const base::Closure& done_callback) OVERRIDE; 52 const base::Closure& done_callback) OVERRIDE;
52 virtual void CollectFinalMetrics(const base::Closure& done_callback) OVERRIDE; 53 virtual void CollectFinalMetrics(const base::Closure& done_callback) OVERRIDE;
53 virtual scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader( 54 virtual scoped_ptr< ::metrics::MetricsLogUploader> CreateUploader(
54 const std::string& server_url, 55 const std::string& server_url,
(...skipping 16 matching lines...) Expand all
71 scoped_ptr< ::metrics::MetricsService> metrics_service_; 72 scoped_ptr< ::metrics::MetricsService> metrics_service_;
72 net::URLRequestContextGetter* request_context_; 73 net::URLRequestContextGetter* request_context_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient); 75 DISALLOW_COPY_AND_ASSIGN(CastMetricsServiceClient);
75 }; 76 };
76 77
77 } // namespace metrics 78 } // namespace metrics
78 } // namespace chromecast 79 } // namespace chromecast
79 80
80 #endif // CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_ 81 #endif // CHROMECAST_METRICS_CAST_METRICS_SERVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698