OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/process_singleton.h" | 5 #include "chrome/browser/process_singleton.h" |
6 | 6 |
7 #include <shellapi.h> | 7 #include <shellapi.h> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/browser_process_platform_part.h" | 25 #include "chrome/browser/browser_process_platform_part.h" |
26 #include "chrome/browser/chrome_process_finder_win.h" | 26 #include "chrome/browser/chrome_process_finder_win.h" |
27 #include "chrome/browser/metro_utils/metro_chrome_win.h" | 27 #include "chrome/browser/metro_utils/metro_chrome_win.h" |
28 #include "chrome/browser/shell_integration.h" | 28 #include "chrome/browser/shell_integration.h" |
29 #include "chrome/browser/ui/simple_message_box.h" | 29 #include "chrome/browser/ui/simple_message_box.h" |
30 #include "chrome/common/chrome_constants.h" | 30 #include "chrome/common/chrome_constants.h" |
31 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
32 #include "chrome/common/chrome_paths_internal.h" | 32 #include "chrome/common/chrome_paths_internal.h" |
33 #include "chrome/common/chrome_switches.h" | 33 #include "chrome/common/chrome_switches.h" |
| 34 #include "chrome/grit/chromium_strings.h" |
34 #include "chrome/installer/util/wmi.h" | 35 #include "chrome/installer/util/wmi.h" |
35 #include "content/public/common/result_codes.h" | 36 #include "content/public/common/result_codes.h" |
36 #include "grit/chromium_strings.h" | |
37 #include "net/base/escape.h" | 37 #include "net/base/escape.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 #include "ui/gfx/win/hwnd_util.h" | 39 #include "ui/gfx/win/hwnd_util.h" |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 const char kLockfile[] = "lockfile"; | 43 const char kLockfile[] = "lockfile"; |
44 | 44 |
45 const int kMetroChromeActivationTimeoutMs = 3000; | 45 const int kMetroChromeActivationTimeoutMs = 3000; |
46 | 46 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 ::SetEvent(metro_activation_event); | 453 ::SetEvent(metro_activation_event); |
454 } | 454 } |
455 } | 455 } |
456 } | 456 } |
457 | 457 |
458 return window_.hwnd() != NULL; | 458 return window_.hwnd() != NULL; |
459 } | 459 } |
460 | 460 |
461 void ProcessSingleton::Cleanup() { | 461 void ProcessSingleton::Cleanup() { |
462 } | 462 } |
OLD | NEW |