OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cloud_print/service/win/service_utils.h" | 5 #include "cloud_print/service/win/service_utils.h" |
| 6 #include "google_apis/gaia/gaia_switches.h" |
6 | 7 |
7 #include <windows.h> | 8 #include <windows.h> |
8 #include <security.h> // NOLINT | 9 #include <security.h> // NOLINT |
9 | 10 |
10 #include "base/command_line.h" | 11 #include "base/command_line.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
13 | 14 |
14 string16 GetLocalComputerName() { | 15 string16 GetLocalComputerName() { |
15 DWORD size = 0; | 16 DWORD size = 0; |
(...skipping 27 matching lines...) Expand all Loading... |
43 if (!::GetUserNameEx(::NameSamCompatible, &result[0], &size)) | 44 if (!::GetUserNameEx(::NameSamCompatible, &result[0], &size)) |
44 return string16(); | 45 return string16(); |
45 result.resize(size); | 46 result.resize(size); |
46 return result; | 47 return result; |
47 } | 48 } |
48 | 49 |
49 void CopyChromeSwitchesFromCurrentProcess(CommandLine* destination) { | 50 void CopyChromeSwitchesFromCurrentProcess(CommandLine* destination) { |
50 static const char* const kSwitchesToCopy[] = { | 51 static const char* const kSwitchesToCopy[] = { |
51 switches::kCloudPrintServiceURL, | 52 switches::kCloudPrintServiceURL, |
52 switches::kEnableLogging, | 53 switches::kEnableLogging, |
| 54 switches::kIgnoreUrlFetcherCertRequests, |
| 55 switches::kLsoHost, |
53 switches::kV, | 56 switches::kV, |
54 }; | 57 }; |
55 destination->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), | 58 destination->CopySwitchesFrom(*CommandLine::ForCurrentProcess(), |
56 kSwitchesToCopy, | 59 kSwitchesToCopy, |
57 arraysize(kSwitchesToCopy)); | 60 arraysize(kSwitchesToCopy)); |
58 } | 61 } |
59 | 62 |
OLD | NEW |