| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/provider/chrome_browser_provider.h" | 5 #include "chrome/browser/android/provider/chrome_browser_provider.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h" | 23 #include "chrome/browser/bookmarks/chrome_bookmark_client_factory.h" |
| 24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/chrome_notification_types.h" | 25 #include "chrome/browser/chrome_notification_types.h" |
| 26 #include "chrome/browser/favicon/favicon_service.h" | 26 #include "chrome/browser/favicon/favicon_service.h" |
| 27 #include "chrome/browser/favicon/favicon_service_factory.h" | 27 #include "chrome/browser/favicon/favicon_service_factory.h" |
| 28 #include "chrome/browser/history/android/android_history_types.h" | 28 #include "chrome/browser/history/android/android_history_types.h" |
| 29 #include "chrome/browser/history/android/sqlite_cursor.h" | 29 #include "chrome/browser/history/android/sqlite_cursor.h" |
| 30 #include "chrome/browser/history/top_sites.h" | 30 #include "chrome/browser/history/top_sites.h" |
| 31 #include "chrome/browser/profiles/profile.h" | 31 #include "chrome/browser/profiles/profile.h" |
| 32 #include "chrome/browser/profiles/profile_manager.h" | 32 #include "chrome/browser/profiles/profile_manager.h" |
| 33 #include "chrome/browser/search_engines/template_url_service.h" |
| 33 #include "chrome/browser/search_engines/template_url_service_factory.h" | 34 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 34 #include "components/bookmarks/browser/bookmark_model.h" | 35 #include "components/bookmarks/browser/bookmark_model.h" |
| 35 #include "components/bookmarks/browser/bookmark_utils.h" | 36 #include "components/bookmarks/browser/bookmark_utils.h" |
| 36 #include "components/search_engines/template_url.h" | 37 #include "components/search_engines/template_url.h" |
| 37 #include "components/search_engines/template_url_service.h" | |
| 38 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
| 39 #include "content/public/browser/notification_service.h" | 39 #include "content/public/browser/notification_service.h" |
| 40 #include "grit/generated_resources.h" | 40 #include "grit/generated_resources.h" |
| 41 #include "jni/ChromeBrowserProvider_jni.h" | 41 #include "jni/ChromeBrowserProvider_jni.h" |
| 42 #include "sql/statement.h" | 42 #include "sql/statement.h" |
| 43 #include "ui/base/l10n/l10n_util.h" | 43 #include "ui/base/l10n/l10n_util.h" |
| 44 #include "ui/base/layout.h" | 44 #include "ui/base/layout.h" |
| 45 #include "ui/base/resource/resource_bundle.h" | 45 #include "ui/base/resource/resource_bundle.h" |
| 46 #include "ui/gfx/favicon_size.h" | 46 #include "ui/gfx/favicon_size.h" |
| 47 | 47 |
| (...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 Java_ChromeBrowserProvider_onBookmarkChanged(env, obj.obj()); | 1630 Java_ChromeBrowserProvider_onBookmarkChanged(env, obj.obj()); |
| 1631 } else if (type == | 1631 } else if (type == |
| 1632 chrome::NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED) { | 1632 chrome::NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED) { |
| 1633 JNIEnv* env = AttachCurrentThread(); | 1633 JNIEnv* env = AttachCurrentThread(); |
| 1634 ScopedJavaLocalRef<jobject> obj = weak_java_provider_.get(env); | 1634 ScopedJavaLocalRef<jobject> obj = weak_java_provider_.get(env); |
| 1635 if (obj.is_null()) | 1635 if (obj.is_null()) |
| 1636 return; | 1636 return; |
| 1637 Java_ChromeBrowserProvider_onSearchTermChanged(env, obj.obj()); | 1637 Java_ChromeBrowserProvider_onSearchTermChanged(env, obj.obj()); |
| 1638 } | 1638 } |
| 1639 } | 1639 } |
| OLD | NEW |