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/installer/util/auto_launch_util.h" | 5 #include "chrome/installer/util/auto_launch_util.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/win/win_util.h" | 13 #include "base/win/win_util.h" |
14 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
15 #include "chrome/common/chrome_paths.h" | 15 #include "chrome/common/chrome_paths.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/chrome_version_info.h" | |
18 #include "chrome/installer/util/util_constants.h" | 17 #include "chrome/installer/util/util_constants.h" |
19 #include "crypto/sha2.h" | 18 #include "crypto/sha2.h" |
20 | 19 |
21 using base::ASCIIToUTF16; | 20 using base::ASCIIToUTF16; |
22 | 21 |
23 namespace auto_launch_util { | 22 namespace auto_launch_util { |
24 | 23 |
25 // The prefix of the Chrome Auto-launch key under the Run key. | 24 // The prefix of the Chrome Auto-launch key under the Run key. |
26 const wchar_t kAutolaunchKeyValue[] = L"GoogleChromeAutoLaunch"; | 25 const wchar_t kAutolaunchKeyValue[] = L"GoogleChromeAutoLaunch"; |
27 | 26 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 } | 241 } |
243 | 242 |
244 void DisableBackgroundStartAtLogin() { | 243 void DisableBackgroundStartAtLogin() { |
245 SetWillLaunchAtLogin(base::FilePath(), | 244 SetWillLaunchAtLogin(base::FilePath(), |
246 ASCIIToUTF16(chrome::kInitialProfile), | 245 ASCIIToUTF16(chrome::kInitialProfile), |
247 FLAG_PRESERVE, | 246 FLAG_PRESERVE, |
248 FLAG_DISABLE); | 247 FLAG_DISABLE); |
249 } | 248 } |
250 | 249 |
251 } // namespace auto_launch_util | 250 } // namespace auto_launch_util |
OLD | NEW |