Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(603)

Side by Side Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper.cc

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.h" 11 #include "chrome/browser/bookmarks/bookmark_model.h"
12 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 12 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
13 #include "chrome/browser/common/cancelable_request.h" 13 #include "chrome/browser/common/cancelable_request.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_system.h" 15 #include "chrome/browser/extensions/extension_system.h"
16 #include "chrome/browser/history/history_backend.h" 16 #include "chrome/browser/history/history_backend.h"
17 #include "chrome/browser/history/history_db_task.h" 17 #include "chrome/browser/history/history_db_task.h"
18 #include "chrome/browser/history/history_service.h" 18 #include "chrome/browser/history/history_service.h"
19 #include "chrome/browser/history/history_service_factory.h" 19 #include "chrome/browser/history/history_service_factory.h"
20 #include "chrome/browser/history/history_types.h" 20 #include "chrome/browser/history/history_types.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/common/extensions/extension_set.h"
23 #include "chrome/common/extensions/sync_helper.h" 22 #include "chrome/common/extensions/sync_helper.h"
24 #include "extensions/common/extension.h" 23 #include "extensions/common/extension.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 // TODO(dconnelly): change VLOG to DVLOG (crbug.com/240195) 28 // TODO(dconnelly): change VLOG to DVLOG (crbug.com/240195)
29 29
30 namespace { 30 namespace {
31 31
32 const int kHistoryEntriesBeforeNewProfilePrompt = 10; 32 const int kHistoryEntriesBeforeNewProfilePrompt = 10;
33 33
34 // Determines whether a profile has any typed URLs in its history. 34 // Determines whether a profile has any typed URLs in its history.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Fire asynchronous queries for profile data. 230 // Fire asynchronous queries for profile data.
231 scoped_refptr<ProfileSigninConfirmationHelper> helper = 231 scoped_refptr<ProfileSigninConfirmationHelper> helper =
232 new ProfileSigninConfirmationHelper(profile, return_result); 232 new ProfileSigninConfirmationHelper(profile, return_result);
233 const int requests = 2; 233 const int requests = 2;
234 helper->set_pending_requests(requests); 234 helper->set_pending_requests(requests);
235 helper->CheckHasHistory(kHistoryEntriesBeforeNewProfilePrompt); 235 helper->CheckHasHistory(kHistoryEntriesBeforeNewProfilePrompt);
236 helper->CheckHasTypedURLs(); 236 helper->CheckHasTypedURLs();
237 } 237 }
238 238
239 } // namespace ui 239 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698