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/common/win_util.h" |
6 | 6 |
7 #include <shellapi.h> | 7 #include <shellapi.h> |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "chrome/browser/browser_main_win.h" | 10 #include "chrome/browser/browser_main_win.h" |
11 | 11 |
| 12 #include "app/l10n_util.h" |
12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
13 #include "base/path_service.h" | 14 #include "base/path_service.h" |
14 #include "base/win_util.h" | 15 #include "base/win_util.h" |
15 #include "chrome/browser/first_run.h" | 16 #include "chrome/browser/first_run.h" |
16 #include "chrome/browser/metrics/metrics_service.h" | 17 #include "chrome/browser/metrics/metrics_service.h" |
17 #include "chrome/browser/views/uninstall_dialog.h" | 18 #include "chrome/browser/views/uninstall_dialog.h" |
18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/env_vars.h" | 20 #include "chrome/common/env_vars.h" |
20 #include "chrome/common/l10n_util.h" | |
21 #include "chrome/common/message_box_flags.h" | 21 #include "chrome/common/message_box_flags.h" |
22 #include "chrome/common/result_codes.h" | 22 #include "chrome/common/result_codes.h" |
23 #include "chrome/installer/util/helper.h" | 23 #include "chrome/installer/util/helper.h" |
24 #include "chrome/installer/util/install_util.h" | 24 #include "chrome/installer/util/install_util.h" |
25 #include "chrome/installer/util/shell_util.h" | 25 #include "chrome/installer/util/shell_util.h" |
26 #include "chrome/views/controls/message_box_view.h" | 26 #include "chrome/views/controls/message_box_view.h" |
27 #include "chrome/views/widget/accelerator_handler.h" | 27 #include "chrome/views/widget/accelerator_handler.h" |
28 #include "chrome/views/window/window.h" | 28 #include "chrome/views/window/window.h" |
29 #include "grit/chromium_strings.h" | 29 #include "grit/chromium_strings.h" |
30 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 | 186 |
187 // We record in UMA the conditions that can prevent breakpad from generating | 187 // We record in UMA the conditions that can prevent breakpad from generating |
188 // and sending crash reports. Namely that the crash reporting registration | 188 // and sending crash reports. Namely that the crash reporting registration |
189 // failed and that the process is being debugged. | 189 // failed and that the process is being debugged. |
190 void RecordBreakpadStatusUMA(MetricsService* metrics) { | 190 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
191 DWORD len = ::GetEnvironmentVariableW(env_vars::kNoOOBreakpad, NULL, 0); | 191 DWORD len = ::GetEnvironmentVariableW(env_vars::kNoOOBreakpad, NULL, 0); |
192 metrics->RecordBreakpadRegistration((len == 0)); | 192 metrics->RecordBreakpadRegistration((len == 0)); |
193 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent()); | 193 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent()); |
194 } | 194 } |
OLD | NEW |