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 20 matching lines...) Expand all Loading... |
31 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
32 #include "chrome/common/chrome_paths.h" | 32 #include "chrome/common/chrome_paths.h" |
33 #include "chrome/common/chrome_paths_internal.h" | 33 #include "chrome/common/chrome_paths_internal.h" |
34 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
35 #include "chrome/installer/util/wmi.h" | 35 #include "chrome/installer/util/wmi.h" |
36 #include "content/public/common/result_codes.h" | 36 #include "content/public/common/result_codes.h" |
37 #include "grit/chromium_strings.h" | 37 #include "grit/chromium_strings.h" |
38 #include "grit/generated_resources.h" | 38 #include "grit/generated_resources.h" |
39 #include "net/base/escape.h" | 39 #include "net/base/escape.h" |
40 #include "ui/base/l10n/l10n_util.h" | 40 #include "ui/base/l10n/l10n_util.h" |
41 #include "ui/base/win/hwnd_util.h" | 41 #include "ui/gfx/win/hwnd_util.h" |
42 | 42 |
43 namespace { | 43 namespace { |
44 | 44 |
45 const char kLockfile[] = "lockfile"; | 45 const char kLockfile[] = "lockfile"; |
46 | 46 |
47 const int kMetroChromeActivationTimeoutMs = 3000; | 47 const int kMetroChromeActivationTimeoutMs = 3000; |
48 | 48 |
49 // A helper class that acquires the given |mutex| while the AutoLockMutex is in | 49 // A helper class that acquires the given |mutex| while the AutoLockMutex is in |
50 // scope. | 50 // scope. |
51 class AutoLockMutex { | 51 class AutoLockMutex { |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 ::SetEvent(metro_activation_event); | 455 ::SetEvent(metro_activation_event); |
456 } | 456 } |
457 } | 457 } |
458 } | 458 } |
459 | 459 |
460 return window_.hwnd() != NULL; | 460 return window_.hwnd() != NULL; |
461 } | 461 } |
462 | 462 |
463 void ProcessSingleton::Cleanup() { | 463 void ProcessSingleton::Cleanup() { |
464 } | 464 } |
OLD | NEW |