| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/engine/app/blimp_metrics_service_client.h" | 5 #include "blimp/engine/app/blimp_metrics_service_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 metrics::MetricsService* BlimpMetricsServiceClient::GetMetricsService() { | 87 metrics::MetricsService* BlimpMetricsServiceClient::GetMetricsService() { |
| 88 return metrics_service_.get(); | 88 return metrics_service_.get(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 // In Chrome, UMA and Breakpad are enabled/disabled together by the same | 91 // In Chrome, UMA and Breakpad are enabled/disabled together by the same |
| 92 // checkbox and they share the same client ID (a.k.a. GUID). | 92 // checkbox and they share the same client ID (a.k.a. GUID). |
| 93 // This is not required by Blimp, so this is a no-op. | 93 // This is not required by Blimp, so this is a no-op. |
| 94 void BlimpMetricsServiceClient::SetMetricsClientId( | 94 void BlimpMetricsServiceClient::SetMetricsClientId( |
| 95 const std::string& client_id) {} | 95 const std::string& client_id) {} |
| 96 | 96 |
| 97 bool BlimpMetricsServiceClient::IsOffTheRecordSessionActive() { | |
| 98 // Blimp does not have incognito mode. | |
| 99 return false; | |
| 100 } | |
| 101 | |
| 102 int32_t BlimpMetricsServiceClient::GetProduct() { | 97 int32_t BlimpMetricsServiceClient::GetProduct() { |
| 103 // Indicates product family (e.g. Chrome v Android Webview), not reported | 98 // Indicates product family (e.g. Chrome v Android Webview), not reported |
| 104 // platform (e.g. Chrome_Linux, Chrome_Mac). | 99 // platform (e.g. Chrome_Linux, Chrome_Mac). |
| 105 return metrics::ChromeUserMetricsExtension::CHROME; | 100 return metrics::ChromeUserMetricsExtension::CHROME; |
| 106 } | 101 } |
| 107 | 102 |
| 108 std::string BlimpMetricsServiceClient::GetApplicationLocale() { | 103 std::string BlimpMetricsServiceClient::GetApplicationLocale() { |
| 109 return base::i18n::GetConfiguredLocale(); | 104 return base::i18n::GetConfiguredLocale(); |
| 110 } | 105 } |
| 111 | 106 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 BlimpMetricsServiceClient::GetMetricsReportingDefaultState() { | 154 BlimpMetricsServiceClient::GetMetricsReportingDefaultState() { |
| 160 return metrics::EnableMetricsDefault::OPT_IN; | 155 return metrics::EnableMetricsDefault::OPT_IN; |
| 161 } | 156 } |
| 162 | 157 |
| 163 bool BlimpMetricsServiceClient::IsConsentGiven() { | 158 bool BlimpMetricsServiceClient::IsConsentGiven() { |
| 164 return true; | 159 return true; |
| 165 } | 160 } |
| 166 | 161 |
| 167 } // namespace engine | 162 } // namespace engine |
| 168 } // namespace blimp | 163 } // namespace blimp |
| OLD | NEW |