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

Side by Side Diff: chrome/browser/android/most_visited_sites.cc

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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/android/most_visited_sites.h" 5 #include "chrome/browser/android/most_visited_sites.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/metrics/sparse_histogram.h" 15 #include "base/metrics/sparse_histogram.h"
16 #include "base/prefs/pref_service.h" 16 #include "base/prefs/pref_service.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "chrome/browser/android/popular_sites.h" 22 #include "chrome/browser/android/popular_sites.h"
23 #include "chrome/browser/history/top_sites_factory.h" 23 #include "chrome/browser/history/top_sites_factory.h"
24 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/profiles/profile_android.h" 25 #include "chrome/browser/profiles/profile_android.h"
26 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 26 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
27 #include "chrome/browser/search/suggestions/suggestions_source.h" 27 #include "chrome/browser/search/suggestions/suggestions_source.h"
28 #include "chrome/browser/sync/profile_sync_service.h"
29 #include "chrome/browser/sync/profile_sync_service_factory.h" 28 #include "chrome/browser/sync/profile_sync_service_factory.h"
30 #include "chrome/browser/thumbnails/thumbnail_list_source.h" 29 #include "chrome/browser/thumbnails/thumbnail_list_source.h"
31 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
32 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
32 #include "components/browser_sync/browser/profile_sync_service.h"
33 #include "components/history/core/browser/top_sites.h" 33 #include "components/history/core/browser/top_sites.h"
34 #include "components/pref_registry/pref_registry_syncable.h" 34 #include "components/pref_registry/pref_registry_syncable.h"
35 #include "components/suggestions/suggestions_service.h" 35 #include "components/suggestions/suggestions_service.h"
36 #include "components/suggestions/suggestions_utils.h" 36 #include "components/suggestions/suggestions_utils.h"
37 #include "components/variations/variations_associated_data.h" 37 #include "components/variations/variations_associated_data.h"
38 #include "content/public/browser/browser_thread.h" 38 #include "content/public/browser/browser_thread.h"
39 #include "content/public/browser/url_data_source.h" 39 #include "content/public/browser/url_data_source.h"
40 #include "jni/MostVisitedSites_jni.h" 40 #include "jni/MostVisitedSites_jni.h"
41 #include "third_party/skia/include/core/SkBitmap.h" 41 #include "third_party/skia/include/core/SkBitmap.h"
42 #include "ui/gfx/android/java_bitmap.h" 42 #include "ui/gfx/android/java_bitmap.h"
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 } 768 }
769 } 769 }
770 770
771 static jlong Init(JNIEnv* env, 771 static jlong Init(JNIEnv* env,
772 const JavaParamRef<jobject>& obj, 772 const JavaParamRef<jobject>& obj,
773 const JavaParamRef<jobject>& jprofile) { 773 const JavaParamRef<jobject>& jprofile) {
774 MostVisitedSites* most_visited_sites = 774 MostVisitedSites* most_visited_sites =
775 new MostVisitedSites(ProfileAndroid::FromProfileAndroid(jprofile)); 775 new MostVisitedSites(ProfileAndroid::FromProfileAndroid(jprofile));
776 return reinterpret_cast<intptr_t>(most_visited_sites); 776 return reinterpret_cast<intptr_t>(most_visited_sites);
777 } 777 }
OLDNEW
« no previous file with comments | « chrome/browser/android/foreign_session_helper.cc ('k') | chrome/browser/android/password_ui_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698