| 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/browser/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 // preferences are registered, since some of the code that the importer | 1681 // preferences are registered, since some of the code that the importer |
| 1682 // touches reads preferences. | 1682 // touches reads preferences. |
| 1683 if (first_run::IsChromeFirstRun()) { | 1683 if (first_run::IsChromeFirstRun()) { |
| 1684 // By default Auto Import is performed on first run. | 1684 // By default Auto Import is performed on first run. |
| 1685 bool auto_import = true; | 1685 bool auto_import = true; |
| 1686 | 1686 |
| 1687 #if defined(OS_WIN) | 1687 #if defined(OS_WIN) |
| 1688 // Auto Import might be disabled via a field trial. However, this field | 1688 // Auto Import might be disabled via a field trial. However, this field |
| 1689 // trial is not intended to affect enterprise users. | 1689 // trial is not intended to affect enterprise users. |
| 1690 auto_import = | 1690 auto_import = |
| 1691 base::win::IsEnterpriseManaged() || | 1691 base::win::IsEnrolledToDomain() || |
| 1692 !base::FeatureList::IsEnabled(features::kDisableFirstRunAutoImportWin); | 1692 !base::FeatureList::IsEnabled(features::kDisableFirstRunAutoImportWin); |
| 1693 #endif // defined(OS_WIN) | 1693 #endif // defined(OS_WIN) |
| 1694 | 1694 |
| 1695 if (auto_import) { | 1695 if (auto_import) { |
| 1696 first_run::AutoImport(profile_, master_prefs_->homepage_defined, | 1696 first_run::AutoImport(profile_, master_prefs_->homepage_defined, |
| 1697 master_prefs_->do_import_items, | 1697 master_prefs_->do_import_items, |
| 1698 master_prefs_->dont_import_items, | 1698 master_prefs_->dont_import_items, |
| 1699 master_prefs_->import_bookmarks_path); | 1699 master_prefs_->import_bookmarks_path); |
| 1700 } | 1700 } |
| 1701 | 1701 |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 chromeos::CrosSettings::Shutdown(); | 2113 chromeos::CrosSettings::Shutdown(); |
| 2114 #endif // defined(OS_CHROMEOS) | 2114 #endif // defined(OS_CHROMEOS) |
| 2115 #endif // defined(OS_ANDROID) | 2115 #endif // defined(OS_ANDROID) |
| 2116 } | 2116 } |
| 2117 | 2117 |
| 2118 // Public members: | 2118 // Public members: |
| 2119 | 2119 |
| 2120 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 2120 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
| 2121 chrome_extra_parts_.push_back(parts); | 2121 chrome_extra_parts_.push_back(parts); |
| 2122 } | 2122 } |
| OLD | NEW |