| 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/android/most_visited_sites.h" | 5 #include "chrome/browser/android/ntp/most_visited_sites.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/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 } | 859 } |
| 860 } | 860 } |
| 861 | 861 |
| 862 static jlong Init(JNIEnv* env, | 862 static jlong Init(JNIEnv* env, |
| 863 const JavaParamRef<jobject>& obj, | 863 const JavaParamRef<jobject>& obj, |
| 864 const JavaParamRef<jobject>& jprofile) { | 864 const JavaParamRef<jobject>& jprofile) { |
| 865 MostVisitedSites* most_visited_sites = | 865 MostVisitedSites* most_visited_sites = |
| 866 new MostVisitedSites(ProfileAndroid::FromProfileAndroid(jprofile)); | 866 new MostVisitedSites(ProfileAndroid::FromProfileAndroid(jprofile)); |
| 867 return reinterpret_cast<intptr_t>(most_visited_sites); | 867 return reinterpret_cast<intptr_t>(most_visited_sites); |
| 868 } | 868 } |
| OLD | NEW |