| 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 <atlbase.h> | 5 #include <atlbase.h> |
| 6 #include <atlcom.h> | 6 #include <atlcom.h> |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 #include <shlobj.h> | 9 #include <shlobj.h> |
| 10 | 10 |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 if (parse_result & installer_util::MASTER_PROFILE_SHOW_WELCOME) | 303 if (parse_result & installer_util::MASTER_PROFILE_SHOW_WELCOME) |
| 304 FirstRun::SetShowWelcomePagePref(); | 304 FirstRun::SetShowWelcomePagePref(); |
| 305 | 305 |
| 306 int import_items = 0; | 306 int import_items = 0; |
| 307 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_SEARCH_ENGINE) | 307 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_SEARCH_ENGINE) |
| 308 import_items += SEARCH_ENGINES; | 308 import_items += SEARCH_ENGINES; |
| 309 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_HISTORY) | 309 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_HISTORY) |
| 310 import_items += HISTORY; | 310 import_items += HISTORY; |
| 311 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_BOOKMARKS) | 311 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_BOOKMARKS) |
| 312 import_items += FAVORITES; | 312 import_items += FAVORITES; |
| 313 if (parse_result & installer_util::MASTER_PROFILE_IMPORT_HOME_PAGE) |
| 314 import_items += HOME_PAGE; |
| 313 | 315 |
| 314 if (import_items) { | 316 if (import_items) { |
| 315 // There is something to import from the default browser. This launches | 317 // There is something to import from the default browser. This launches |
| 316 // the importer process and blocks until done or until it fails. | 318 // the importer process and blocks until done or until it fails. |
| 317 if (!FirstRun::ImportSettings(NULL, 0, import_items, NULL)) { | 319 if (!FirstRun::ImportSettings(NULL, 0, import_items, NULL)) { |
| 318 LOG(WARNING) << "silent import failed"; | 320 LOG(WARNING) << "silent import failed"; |
| 319 } | 321 } |
| 320 } | 322 } |
| 321 | 323 |
| 322 if (parse_result & | 324 if (parse_result & |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 | 893 |
| 892 DISALLOW_COPY_AND_ASSIGN(TryChromeDialog); | 894 DISALLOW_COPY_AND_ASSIGN(TryChromeDialog); |
| 893 }; | 895 }; |
| 894 | 896 |
| 895 } // namespace | 897 } // namespace |
| 896 | 898 |
| 897 Upgrade::TryResult Upgrade::ShowTryChromeDialog() { | 899 Upgrade::TryResult Upgrade::ShowTryChromeDialog() { |
| 898 TryChromeDialog td; | 900 TryChromeDialog td; |
| 899 return td.ShowModal(); | 901 return td.ShowModal(); |
| 900 } | 902 } |
| OLD | NEW |