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 <windows.h> | 5 #include <windows.h> |
6 #include <shlobj.h> | 6 #include <shlobj.h> |
7 | 7 |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "chrome/browser/first_run.h" | 10 #include "chrome/browser/first_run.h" |
11 | 11 |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/object_watcher.h" | 14 #include "base/object_watcher.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "base/string_util.h" | 17 #include "base/string_util.h" |
18 #include "chrome/app/result_codes.h" | 18 #include "chrome/app/result_codes.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/hang_monitor/hung_window_detector.h" | 21 #include "chrome/browser/hang_monitor/hung_window_detector.h" |
22 #include "chrome/browser/importer.h" | 22 #include "chrome/browser/importer/importer.h" |
23 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
24 #include "chrome/browser/views/first_run_view.h" | 24 #include "chrome/browser/views/first_run_view.h" |
25 #include "chrome/common/chrome_constants.h" | 25 #include "chrome/common/chrome_constants.h" |
26 #include "chrome/common/chrome_paths.h" | 26 #include "chrome/common/chrome_paths.h" |
27 #include "chrome/common/pref_service.h" | 27 #include "chrome/common/pref_service.h" |
28 #include "chrome/installer/util/shell_util.h" | 28 #include "chrome/installer/util/shell_util.h" |
29 #include "chrome/views/accelerator_handler.h" | 29 #include "chrome/views/accelerator_handler.h" |
30 #include "chrome/views/window.h" | 30 #include "chrome/views/window.h" |
31 | 31 |
32 namespace { | 32 namespace { |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 items_to_import, | 360 items_to_import, |
361 importer_host, | 361 importer_host, |
362 importer_host->GetSourceProfileInfoAt(browser), | 362 importer_host->GetSourceProfileInfoAt(browser), |
363 profile, | 363 profile, |
364 &observer, | 364 &observer, |
365 true); | 365 true); |
366 MessageLoop::current()->Run(); | 366 MessageLoop::current()->Run(); |
367 return observer.import_result(); | 367 return observer.import_result(); |
368 } | 368 } |
369 | 369 |
OLD | NEW |