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

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

Issue 2383533002: Make logging of user actions consistent with histograms for OTR. (Closed)
Patch Set: Also change the cast client. Created 4 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 #include "chrome/browser/metrics/chrome_metrics_service_client.h" 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 metrics::MetricsService* ChromeMetricsServiceClient::GetMetricsService() { 306 metrics::MetricsService* ChromeMetricsServiceClient::GetMetricsService() {
307 return metrics_service_.get(); 307 return metrics_service_.get();
308 } 308 }
309 309
310 void ChromeMetricsServiceClient::SetMetricsClientId( 310 void ChromeMetricsServiceClient::SetMetricsClientId(
311 const std::string& client_id) { 311 const std::string& client_id) {
312 crash_keys::SetMetricsClientIdFromGUID(client_id); 312 crash_keys::SetMetricsClientIdFromGUID(client_id);
313 } 313 }
314 314
315 bool ChromeMetricsServiceClient::IsOffTheRecordSessionActive() {
316 return chrome::IsIncognitoSessionActive();
317 }
318
319 int32_t ChromeMetricsServiceClient::GetProduct() { 315 int32_t ChromeMetricsServiceClient::GetProduct() {
320 return metrics::ChromeUserMetricsExtension::CHROME; 316 return metrics::ChromeUserMetricsExtension::CHROME;
321 } 317 }
322 318
323 std::string ChromeMetricsServiceClient::GetApplicationLocale() { 319 std::string ChromeMetricsServiceClient::GetApplicationLocale() {
324 return g_browser_process->GetApplicationLocale(); 320 return g_browser_process->GetApplicationLocale();
325 } 321 }
326 322
327 bool ChromeMetricsServiceClient::GetBrand(std::string* brand_code) { 323 bool ChromeMetricsServiceClient::GetBrand(std::string* brand_code) {
328 return google_brand::GetBrand(brand_code); 324 return google_brand::GetBrand(brand_code);
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 } 810 }
815 } 811 }
816 812
817 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { 813 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) {
818 metrics_service_->OnApplicationNotIdle(); 814 metrics_service_->OnApplicationNotIdle();
819 } 815 }
820 816
821 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() { 817 bool ChromeMetricsServiceClient::IsUMACellularUploadLogicEnabled() {
822 return metrics::IsCellularLogicEnabled(); 818 return metrics::IsCellularLogicEnabled();
823 } 819 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.h ('k') | chromecast/browser/metrics/cast_metrics_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698