| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/common/win_util.h" | 5 #include "chrome/browser/browser_main_win.h" |
| 6 | 6 |
| 7 #include <windows.h> |
| 7 #include <shellapi.h> | 8 #include <shellapi.h> |
| 8 #include <windows.h> | |
| 9 | |
| 10 #include "chrome/browser/browser_main_win.h" | |
| 11 | 9 |
| 12 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 13 #include "app/message_box_flags.h" | 11 #include "app/message_box_flags.h" |
| 12 #include "app/win_util.h" |
| 14 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 15 #include "base/path_service.h" | 14 #include "base/path_service.h" |
| 16 #include "base/win_util.h" | 15 #include "base/win_util.h" |
| 17 #include "chrome/browser/first_run.h" | 16 #include "chrome/browser/first_run.h" |
| 18 #include "chrome/browser/metrics/metrics_service.h" | 17 #include "chrome/browser/metrics/metrics_service.h" |
| 19 #include "chrome/browser/views/uninstall_dialog.h" | 18 #include "chrome/browser/views/uninstall_dialog.h" |
| 20 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/env_vars.h" | 20 #include "chrome/common/env_vars.h" |
| 22 #include "chrome/common/result_codes.h" | 21 #include "chrome/common/result_codes.h" |
| 23 #include "chrome/installer/util/helper.h" | 22 #include "chrome/installer/util/helper.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } | 184 } |
| 186 | 185 |
| 187 // We record in UMA the conditions that can prevent breakpad from generating | 186 // We record in UMA the conditions that can prevent breakpad from generating |
| 188 // and sending crash reports. Namely that the crash reporting registration | 187 // and sending crash reports. Namely that the crash reporting registration |
| 189 // failed and that the process is being debugged. | 188 // failed and that the process is being debugged. |
| 190 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 189 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 191 DWORD len = ::GetEnvironmentVariableW(env_vars::kNoOOBreakpad, NULL, 0); | 190 DWORD len = ::GetEnvironmentVariableW(env_vars::kNoOOBreakpad, NULL, 0); |
| 192 metrics->RecordBreakpadRegistration((len == 0)); | 191 metrics->RecordBreakpadRegistration((len == 0)); |
| 193 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent()); | 192 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent()); |
| 194 } | 193 } |
| OLD | NEW |