OLD | NEW |
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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 } | 273 } |
274 | 274 |
275 base::string16 ChromeMetricsServiceClient::GetRegistryBackupKey() { | 275 base::string16 ChromeMetricsServiceClient::GetRegistryBackupKey() { |
276 #if defined(OS_WIN) | 276 #if defined(OS_WIN) |
277 return L"Software\\" PRODUCT_STRING_PATH L"\\StabilityMetrics"; | 277 return L"Software\\" PRODUCT_STRING_PATH L"\\StabilityMetrics"; |
278 #else | 278 #else |
279 return base::string16(); | 279 return base::string16(); |
280 #endif | 280 #endif |
281 } | 281 } |
282 | 282 |
283 void ChromeMetricsServiceClient::LogPluginLoadingError( | 283 void ChromeMetricsServiceClient::OnPluginLoadingError( |
284 const base::FilePath& plugin_path) { | 284 const base::FilePath& plugin_path) { |
285 #if defined(ENABLE_PLUGINS) | 285 #if defined(ENABLE_PLUGINS) |
286 plugin_metrics_provider_->LogPluginLoadingError(plugin_path); | 286 plugin_metrics_provider_->LogPluginLoadingError(plugin_path); |
287 #else | 287 #else |
288 NOTREACHED(); | 288 NOTREACHED(); |
289 #endif // defined(ENABLE_PLUGINS) | 289 #endif // defined(ENABLE_PLUGINS) |
290 } | 290 } |
291 | 291 |
292 void ChromeMetricsServiceClient::Initialize() { | 292 void ChromeMetricsServiceClient::Initialize() { |
293 // Clear metrics reports if it is the first time cellular upload logic should | 293 // Clear metrics reports if it is the first time cellular upload logic should |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 break; | 603 break; |
604 | 604 |
605 default: | 605 default: |
606 NOTREACHED(); | 606 NOTREACHED(); |
607 } | 607 } |
608 } | 608 } |
609 | 609 |
610 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { | 610 void ChromeMetricsServiceClient::OnURLOpenedFromOmnibox(OmniboxLog* log) { |
611 metrics_service_->OnApplicationNotIdle(); | 611 metrics_service_->OnApplicationNotIdle(); |
612 } | 612 } |
OLD | NEW |