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

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

Issue 1023783005: Merge Crashpad to the 42.0.2311 branch (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2311
Patch Set: 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
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 <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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 AndroidMetricsProvider::RegisterPrefs(registry); 145 AndroidMetricsProvider::RegisterPrefs(registry);
146 #endif // defined(OS_ANDROID) 146 #endif // defined(OS_ANDROID)
147 147
148 #if defined(ENABLE_PLUGINS) 148 #if defined(ENABLE_PLUGINS)
149 PluginMetricsProvider::RegisterPrefs(registry); 149 PluginMetricsProvider::RegisterPrefs(registry);
150 #endif // defined(ENABLE_PLUGINS) 150 #endif // defined(ENABLE_PLUGINS)
151 } 151 }
152 152
153 void ChromeMetricsServiceClient::SetMetricsClientId( 153 void ChromeMetricsServiceClient::SetMetricsClientId(
154 const std::string& client_id) { 154 const std::string& client_id) {
155 crash_keys::SetCrashClientIdFromGUID(client_id); 155 crash_keys::SetMetricsClientIdFromGUID(client_id);
156 }
157
158 void ChromeMetricsServiceClient::OnRecordingDisabled() {
159 crash_keys::ClearMetricsClientId();
156 } 160 }
157 161
158 bool ChromeMetricsServiceClient::IsOffTheRecordSessionActive() { 162 bool ChromeMetricsServiceClient::IsOffTheRecordSessionActive() {
159 return chrome::IsOffTheRecordSessionActive(); 163 return chrome::IsOffTheRecordSessionActive();
160 } 164 }
161 165
162 int32 ChromeMetricsServiceClient::GetProduct() { 166 int32 ChromeMetricsServiceClient::GetProduct() {
163 return metrics::ChromeUserMetricsExtension::CHROME; 167 return metrics::ChromeUserMetricsExtension::CHROME;
164 } 168 }
165 169
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // Capture the histogram samples. 550 // Capture the histogram samples.
547 if (dumps_with_crash != 0) 551 if (dumps_with_crash != 0)
548 UMA_HISTOGRAM_COUNTS("Chrome.BrowserDumpsWithCrash", dumps_with_crash); 552 UMA_HISTOGRAM_COUNTS("Chrome.BrowserDumpsWithCrash", dumps_with_crash);
549 if (dumps_with_no_crash != 0) 553 if (dumps_with_no_crash != 0)
550 UMA_HISTOGRAM_COUNTS("Chrome.BrowserDumpsWithNoCrash", dumps_with_no_crash); 554 UMA_HISTOGRAM_COUNTS("Chrome.BrowserDumpsWithNoCrash", dumps_with_no_crash);
551 int total_dumps = dumps_with_crash + dumps_with_no_crash; 555 int total_dumps = dumps_with_crash + dumps_with_no_crash;
552 if (total_dumps != 0) 556 if (total_dumps != 0)
553 UMA_HISTOGRAM_COUNTS("Chrome.BrowserCrashDumpAttempts", total_dumps); 557 UMA_HISTOGRAM_COUNTS("Chrome.BrowserCrashDumpAttempts", total_dumps);
554 } 558 }
555 #endif // defined(OS_WIN) 559 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.h ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698