| 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 "remoting/host/plugin/daemon_installer_win.h" | 5 #include "remoting/host/plugin/daemon_installer_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "base/stringize_macros.h" | 13 #include "base/stringize_macros.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "base/timer.h" | 16 #include "base/timer.h" |
| 17 #include "base/win/object_watcher.h" | 17 #include "base/win/object_watcher.h" |
| 18 #include "base/win/registry.h" | 18 #include "base/win/registry.h" |
| 19 #include "base/win/scoped_bstr.h" | 19 #include "base/win/scoped_bstr.h" |
| 20 #include "base/win/scoped_comptr.h" | 20 #include "base/win/scoped_comptr.h" |
| 21 #include "base/win/scoped_handle.h" | 21 #include "base/win/scoped_handle.h" |
| 22 #include "base/win/scoped_variant.h" | 22 #include "base/win/scoped_variant.h" |
| 23 #include "google_update/google_update_idl.h" | 23 #include "google_update/google_update_idl.h" |
| 24 #include "remoting/base/constants.h" |
| 24 #include "remoting/base/dispatch_win.h" | 25 #include "remoting/base/dispatch_win.h" |
| 25 #include "remoting/host/constants.h" | |
| 26 | 26 |
| 27 using base::win::ScopedBstr; | 27 using base::win::ScopedBstr; |
| 28 using base::win::ScopedComPtr; | 28 using base::win::ScopedComPtr; |
| 29 using base::win::ScopedVariant; | 29 using base::win::ScopedVariant; |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 // The COM elevation moniker for Omaha. | 33 // The COM elevation moniker for Omaha. |
| 34 const char16 kOmahaElevationMoniker[] = | 34 const char16 kOmahaElevationMoniker[] = |
| 35 TO_L_STRING("Elevation:Administrator!new:GoogleUpdate.Update3WebMachine"); | 35 TO_L_STRING("Elevation:Administrator!new:GoogleUpdate.Update3WebMachine"); |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 HWND parent = GetAncestor(window, GA_PARENT); | 382 HWND parent = GetAncestor(window, GA_PARENT); |
| 383 if (parent == NULL) { | 383 if (parent == NULL) { |
| 384 return window; | 384 return window; |
| 385 } | 385 } |
| 386 | 386 |
| 387 window = parent; | 387 window = parent; |
| 388 } | 388 } |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace remoting | 391 } // namespace remoting |
| OLD | NEW |