OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/user_data_manager.h" | 7 #include "chrome/browser/user_data_manager.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "app/l10n_util.h" |
11 #include "base/file_util.h" | 12 #include "base/file_util.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
14 #include "base/path_service.h" | 15 #include "base/path_service.h" |
15 #include "base/process_util.h" | 16 #include "base/process_util.h" |
16 #include "base/string_util.h" | 17 #include "base/string_util.h" |
17 #include "chrome/browser/chrome_thread.h" | 18 #include "chrome/browser/chrome_thread.h" |
18 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
20 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/l10n_util.h" | |
22 #include "chrome/installer/util/browser_distribution.h" | 22 #include "chrome/installer/util/browser_distribution.h" |
23 #include "grit/chromium_strings.h" | 23 #include "grit/chromium_strings.h" |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include <windows.h> | 26 #include <windows.h> |
27 #include "chrome/installer/util/shell_util.h" | 27 #include "chrome/installer/util/shell_util.h" |
28 #endif | 28 #endif |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 &GetProfilesHelper::InvokeDelegate, | 302 &GetProfilesHelper::InvokeDelegate, |
303 profiles.release())); | 303 profiles.release())); |
304 } | 304 } |
305 | 305 |
306 void GetProfilesHelper::InvokeDelegate(std::vector<std::wstring>* profiles) { | 306 void GetProfilesHelper::InvokeDelegate(std::vector<std::wstring>* profiles) { |
307 scoped_ptr< std::vector<std::wstring> > udd_profiles(profiles); | 307 scoped_ptr< std::vector<std::wstring> > udd_profiles(profiles); |
308 // If the delegate is gone by now, no need to do any work. | 308 // If the delegate is gone by now, no need to do any work. |
309 if (delegate_) | 309 if (delegate_) |
310 delegate_->OnGetProfilesDone(*udd_profiles.get()); | 310 delegate_->OnGetProfilesDone(*udd_profiles.get()); |
311 } | 311 } |
OLD | NEW |