| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/sync/profile_signin_confirmation_helper.h" | 5 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 if (HasBeenShutdown(profile) || | 90 if (HasBeenShutdown(profile) || |
| 91 HasBookmarks(profile) || | 91 HasBookmarks(profile) || |
| 92 HasSyncedExtensions(profile)) { | 92 HasSyncedExtensions(profile)) { |
| 93 return_result.Run(true); | 93 return_result.Run(true); |
| 94 return; | 94 return; |
| 95 } | 95 } |
| 96 history::HistoryService* service = | 96 history::HistoryService* service = |
| 97 HistoryServiceFactory::GetForProfileWithoutCreating(profile); | 97 HistoryServiceFactory::GetForProfileWithoutCreating(profile); |
| 98 // Fire asynchronous queries for profile data. | 98 // Fire asynchronous queries for profile data. |
| 99 sync_driver::SigninConfirmationHelper* helper = | 99 browser_sync::SigninConfirmationHelper* helper = |
| 100 new sync_driver::SigninConfirmationHelper(service, return_result); | 100 new browser_sync::SigninConfirmationHelper(service, return_result); |
| 101 helper->CheckHasHistory(kHistoryEntriesBeforeNewProfilePrompt); | 101 helper->CheckHasHistory(kHistoryEntriesBeforeNewProfilePrompt); |
| 102 helper->CheckHasTypedURLs(); | 102 helper->CheckHasTypedURLs(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace ui | 105 } // namespace ui |
| OLD | NEW |