| 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <setupapi.h> // Must be included after windows.h | 6 #include <setupapi.h> // Must be included after windows.h |
| 7 #include <winspool.h> | 7 #include <winspool.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <iomanip> | 10 #include <iomanip> |
| 11 | 11 |
| 12 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/process/launch.h" | 17 #include "base/process/launch.h" |
| 18 #include "base/process/process.h" | 18 #include "base/process/process.h" |
| 19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| 22 #include "cloud_print/common/win/cloud_print_utils.h" | 22 #include "cloud_print/common/win/cloud_print_utils.h" |
| 23 #include "cloud_print/common/win/install_utils.h" | 23 #include "cloud_print/common/win/install_utils.h" |
| 24 #include "cloud_print/virtual_driver/win/install/grit/virtual_driver_setup_resou
rces.h" |
| 24 #include "cloud_print/virtual_driver/win/virtual_driver_consts.h" | 25 #include "cloud_print/virtual_driver/win/virtual_driver_consts.h" |
| 25 #include "cloud_print/virtual_driver/win/virtual_driver_helpers.h" | 26 #include "cloud_print/virtual_driver/win/virtual_driver_helpers.h" |
| 26 #include "virtual_driver_setup_resources/grit/virtual_driver_setup_resources.h" | |
| 27 | 27 |
| 28 #include <strsafe.h> // Must be after base headers to avoid deprecation | 28 #include <strsafe.h> // Must be after base headers to avoid deprecation |
| 29 // warnings. | 29 // warnings. |
| 30 | 30 |
| 31 namespace cloud_print { | 31 namespace cloud_print { |
| 32 | 32 |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 const wchar_t kNameValue[] = L"GCP Virtual Driver"; | 35 const wchar_t kNameValue[] = L"GCP Virtual Driver"; |
| 36 const wchar_t kUninstallId[] = L"{74AA24E0-AC50-4B28-BA46-9CF05467C9B7}"; | 36 const wchar_t kUninstallId[] = L"{74AA24E0-AC50-4B28-BA46-9CF05467C9B7}"; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 425 |
| 426 VLOG(0) << GetErrorMessage(retval) << " HRESULT=0x" << std::setbase(16) | 426 VLOG(0) << GetErrorMessage(retval) << " HRESULT=0x" << std::setbase(16) |
| 427 << retval; | 427 << retval; |
| 428 | 428 |
| 429 // Installer is silent by default as required by Google Update. | 429 // Installer is silent by default as required by Google Update. |
| 430 if (base::CommandLine::ForCurrentProcess()->HasSwitch("verbose")) { | 430 if (base::CommandLine::ForCurrentProcess()->HasSwitch("verbose")) { |
| 431 DisplayWindowsMessage(NULL, retval, LoadLocalString(IDS_DRIVER_NAME)); | 431 DisplayWindowsMessage(NULL, retval, LoadLocalString(IDS_DRIVER_NAME)); |
| 432 } | 432 } |
| 433 return retval; | 433 return retval; |
| 434 } | 434 } |
| OLD | NEW |