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

Side by Side Diff: chrome/browser/android/ntp/most_visited_sites_bridge.cc

Issue 1983063002: Move classes to //components/ntp_tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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/ntp/most_visited_sites_bridge.h" 5 #include "chrome/browser/android/ntp/most_visited_sites_bridge.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "base/android/scoped_java_ref.h" 12 #include "base/android/scoped_java_ref.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "chrome/browser/android/ntp/popular_sites.h" 15 #include "chrome/browser/android/ntp/popular_sites.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/history/top_sites_factory.h" 17 #include "chrome/browser/history/top_sites_factory.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile_android.h" 19 #include "chrome/browser/profiles/profile_android.h"
20 #include "chrome/browser/search/suggestions/suggestions_service_factory.h" 20 #include "chrome/browser/search/suggestions/suggestions_service_factory.h"
21 #include "chrome/browser/search_engines/template_url_service_factory.h" 21 #include "chrome/browser/search_engines/template_url_service_factory.h"
22 #include "chrome/browser/supervised_user/supervised_user_service.h" 22 #include "chrome/browser/supervised_user/supervised_user_service.h"
23 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 23 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
24 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" 24 #include "chrome/browser/supervised_user/supervised_user_url_filter.h"
25 #include "chrome/browser/thumbnails/thumbnail_list_source.h" 25 #include "chrome/browser/thumbnails/thumbnail_list_source.h"
26 #include "components/history/core/browser/top_sites.h" 26 #include "components/history/core/browser/top_sites.h"
27 #include "components/ntp_tiles/popular_sites.h"
27 #include "content/public/browser/browser_thread.h" 28 #include "content/public/browser/browser_thread.h"
28 #include "content/public/browser/url_data_source.h" 29 #include "content/public/browser/url_data_source.h"
29 #include "jni/MostVisitedSites_jni.h" 30 #include "jni/MostVisitedSites_jni.h"
30 #include "ui/gfx/android/java_bitmap.h" 31 #include "ui/gfx/android/java_bitmap.h"
31 #include "url/gurl.h" 32 #include "url/gurl.h"
32 33
33 using base::android::AttachCurrentThread; 34 using base::android::AttachCurrentThread;
34 using base::android::ConvertJavaStringToUTF8; 35 using base::android::ConvertJavaStringToUTF8;
35 using base::android::ScopedJavaGlobalRef; 36 using base::android::ScopedJavaGlobalRef;
36 using base::android::ScopedJavaLocalRef; 37 using base::android::ScopedJavaLocalRef;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 239 }
239 240
240 static jlong Init(JNIEnv* env, 241 static jlong Init(JNIEnv* env,
241 const JavaParamRef<jobject>& obj, 242 const JavaParamRef<jobject>& obj,
242 const JavaParamRef<jobject>& jprofile) { 243 const JavaParamRef<jobject>& jprofile) {
243 MostVisitedSitesBridge* most_visited_sites = 244 MostVisitedSitesBridge* most_visited_sites =
244 new MostVisitedSitesBridge( 245 new MostVisitedSitesBridge(
245 ProfileAndroid::FromProfileAndroid(jprofile)); 246 ProfileAndroid::FromProfileAndroid(jprofile));
246 return reinterpret_cast<intptr_t>(most_visited_sites); 247 return reinterpret_cast<intptr_t>(most_visited_sites);
247 } 248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698