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 "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
12 #include "chrome/browser/common/cancelable_request.h" | 12 #include "chrome/browser/common/cancelable_request.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/history/history_backend.h" | 14 #include "chrome/browser/history/history_backend.h" |
15 #include "chrome/browser/history/history_db_task.h" | 15 #include "chrome/browser/history/history_db_task.h" |
16 #include "chrome/browser/history/history_service.h" | 16 #include "chrome/browser/history/history_service.h" |
17 #include "chrome/browser/history/history_service_factory.h" | 17 #include "chrome/browser/history/history_service_factory.h" |
18 #include "chrome/browser/history/history_types.h" | 18 #include "chrome/browser/history/history_types.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/extensions/sync_helper.h" | 20 #include "chrome/common/extensions/sync_helper.h" |
21 #include "components/bookmarks/core/browser/bookmark_model.h" | 21 #include "components/bookmarks/browser/bookmark_model.h" |
22 #include "extensions/browser/extension_system.h" | 22 #include "extensions/browser/extension_system.h" |
23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
24 #include "extensions/common/extension_set.h" | 24 #include "extensions/common/extension_set.h" |
25 #include "ui/gfx/color_utils.h" | 25 #include "ui/gfx/color_utils.h" |
26 #include "ui/native_theme/native_theme.h" | 26 #include "ui/native_theme/native_theme.h" |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 const int kHistoryEntriesBeforeNewProfilePrompt = 10; | 30 const int kHistoryEntriesBeforeNewProfilePrompt = 10; |
31 | 31 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Fire asynchronous queries for profile data. | 229 // Fire asynchronous queries for profile data. |
230 scoped_refptr<ProfileSigninConfirmationHelper> helper = | 230 scoped_refptr<ProfileSigninConfirmationHelper> helper = |
231 new ProfileSigninConfirmationHelper(profile, return_result); | 231 new ProfileSigninConfirmationHelper(profile, return_result); |
232 const int requests = 2; | 232 const int requests = 2; |
233 helper->set_pending_requests(requests); | 233 helper->set_pending_requests(requests); |
234 helper->CheckHasHistory(kHistoryEntriesBeforeNewProfilePrompt); | 234 helper->CheckHasHistory(kHistoryEntriesBeforeNewProfilePrompt); |
235 helper->CheckHasTypedURLs(); | 235 helper->CheckHasTypedURLs(); |
236 } | 236 } |
237 | 237 |
238 } // namespace ui | 238 } // namespace ui |
OLD | NEW |