| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_snippets_bridge.h" | 5 #include "chrome/browser/android/ntp/ntp_snippets_bridge.h" |
| 6 | 6 |
| 7 #include <jni.h> | 7 #include <jni.h> |
| 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/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" | 12 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/profiles/profile_android.h" | 14 #include "chrome/browser/profiles/profile_android.h" |
| 15 #include "components/ntp_snippets/ntp_snippet.h" | 15 #include "components/ntp_snippets/ntp_snippet.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void NTPSnippetsBridge::NTPSnippetsServiceShutdown( | 77 void NTPSnippetsBridge::NTPSnippetsServiceShutdown( |
| 78 NTPSnippetsService* service) { | 78 NTPSnippetsService* service) { |
| 79 observer_.Reset(); | 79 observer_.Reset(); |
| 80 snippet_service_observer_.Remove(ntp_snippets_service_); | 80 snippet_service_observer_.Remove(ntp_snippets_service_); |
| 81 } | 81 } |
| 82 | 82 |
| 83 // static | 83 // static |
| 84 bool NTPSnippetsBridge::Register(JNIEnv* env) { | 84 bool NTPSnippetsBridge::Register(JNIEnv* env) { |
| 85 return RegisterNativesImpl(env); | 85 return RegisterNativesImpl(env); |
| 86 } | 86 } |
| OLD | NEW |