OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_frame/chrome_launcher_utils.h" | 5 #include "chrome_frame/chrome_launcher_utils.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/win/windows_version.h" | 14 #include "base/win/windows_version.h" |
15 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome_frame/chrome_frame_automation.h" | 17 #include "chrome_frame/chrome_frame_automation.h" |
18 #include "chrome_frame/policy_settings.h" | 18 #include "chrome_frame/policy_settings.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char kUpdateCommandFlag[] = "--update-cmd"; | 22 const char kUpdateCommandFlag[] = "--update-cmd"; |
23 | 23 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // instead. | 100 // instead. |
101 if (!file_util::PathExists(cur_path)) { | 101 if (!file_util::PathExists(cur_path)) { |
102 PathService::Get(base::DIR_MODULE, &cur_path); | 102 PathService::Get(base::DIR_MODULE, &cur_path); |
103 cur_path = cur_path.DirName().Append(chrome::kBrowserProcessExecutableName); | 103 cur_path = cur_path.DirName().Append(chrome::kBrowserProcessExecutableName); |
104 } | 104 } |
105 | 105 |
106 return cur_path; | 106 return cur_path; |
107 } | 107 } |
108 | 108 |
109 } // namespace chrome_launcher | 109 } // namespace chrome_launcher |
OLD | NEW |