| 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/launcher_support/chrome_launcher_support.h" | 5 #include "chrome/installer/launcher_support/chrome_launcher_support.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/file_util.h" | |
| 10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
| 13 | 13 |
| 14 namespace chrome_launcher_support { | 14 namespace chrome_launcher_support { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // TODO(huangs) Refactor the constants: http://crbug.com/148538 | 18 // TODO(huangs) Refactor the constants: http://crbug.com/148538 |
| 19 const wchar_t kGoogleRegClientStateKey[] = | 19 const wchar_t kGoogleRegClientStateKey[] = |
| 20 L"Software\\Google\\Update\\ClientState"; | 20 L"Software\\Google\\Update\\ClientState"; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 base::FilePath GetAnyChromePath() { | 109 base::FilePath GetAnyChromePath() { |
| 110 base::FilePath chrome_path; | 110 base::FilePath chrome_path; |
| 111 if (chrome_path.empty()) | 111 if (chrome_path.empty()) |
| 112 chrome_path = GetChromePathForInstallationLevel(SYSTEM_LEVEL_INSTALLATION); | 112 chrome_path = GetChromePathForInstallationLevel(SYSTEM_LEVEL_INSTALLATION); |
| 113 if (chrome_path.empty()) | 113 if (chrome_path.empty()) |
| 114 chrome_path = GetChromePathForInstallationLevel(USER_LEVEL_INSTALLATION); | 114 chrome_path = GetChromePathForInstallationLevel(USER_LEVEL_INSTALLATION); |
| 115 return chrome_path; | 115 return chrome_path; |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace chrome_launcher_support | 118 } // namespace chrome_launcher_support |
| OLD | NEW |