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 <cmath> | 7 #include <cmath> |
8 #include <list> | 8 #include <list> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "chrome/browser/history/top_sites.h" | 31 #include "chrome/browser/history/top_sites.h" |
32 #include "chrome/browser/profiles/profile.h" | 32 #include "chrome/browser/profiles/profile.h" |
33 #include "chrome/browser/profiles/profile_manager.h" | 33 #include "chrome/browser/profiles/profile_manager.h" |
34 #include "chrome/browser/search_engines/template_url_service_factory.h" | 34 #include "chrome/browser/search_engines/template_url_service_factory.h" |
35 #include "components/bookmarks/browser/bookmark_model.h" | 35 #include "components/bookmarks/browser/bookmark_model.h" |
36 #include "components/bookmarks/browser/bookmark_utils.h" | 36 #include "components/bookmarks/browser/bookmark_utils.h" |
37 #include "components/search_engines/template_url.h" | 37 #include "components/search_engines/template_url.h" |
38 #include "components/search_engines/template_url_service.h" | 38 #include "components/search_engines/template_url_service.h" |
39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
40 #include "content/public/browser/notification_service.h" | 40 #include "content/public/browser/notification_service.h" |
41 #include "grit/generated_resources.h" | |
42 #include "jni/ChromeBrowserProvider_jni.h" | 41 #include "jni/ChromeBrowserProvider_jni.h" |
43 #include "sql/statement.h" | 42 #include "sql/statement.h" |
44 #include "ui/base/l10n/l10n_util.h" | |
45 #include "ui/base/layout.h" | 43 #include "ui/base/layout.h" |
46 #include "ui/base/resource/resource_bundle.h" | 44 #include "ui/base/resource/resource_bundle.h" |
47 #include "ui/gfx/favicon_size.h" | 45 #include "ui/gfx/favicon_size.h" |
48 | 46 |
49 using base::android::AttachCurrentThread; | 47 using base::android::AttachCurrentThread; |
50 using base::android::CheckException; | 48 using base::android::CheckException; |
51 using base::android::ClearException; | 49 using base::android::ClearException; |
52 using base::android::ConvertJavaStringToUTF16; | 50 using base::android::ConvertJavaStringToUTF16; |
53 using base::android::ConvertJavaStringToUTF8; | 51 using base::android::ConvertJavaStringToUTF8; |
54 using base::android::ConvertUTF8ToJavaString; | 52 using base::android::ConvertUTF8ToJavaString; |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 Java_ChromeBrowserProvider_onBookmarkChanged(env, obj.obj()); | 1616 Java_ChromeBrowserProvider_onBookmarkChanged(env, obj.obj()); |
1619 } else if (type == | 1617 } else if (type == |
1620 chrome::NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED) { | 1618 chrome::NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED) { |
1621 JNIEnv* env = AttachCurrentThread(); | 1619 JNIEnv* env = AttachCurrentThread(); |
1622 ScopedJavaLocalRef<jobject> obj = weak_java_provider_.get(env); | 1620 ScopedJavaLocalRef<jobject> obj = weak_java_provider_.get(env); |
1623 if (obj.is_null()) | 1621 if (obj.is_null()) |
1624 return; | 1622 return; |
1625 Java_ChromeBrowserProvider_onSearchTermChanged(env, obj.obj()); | 1623 Java_ChromeBrowserProvider_onSearchTermChanged(env, obj.obj()); |
1626 } | 1624 } |
1627 } | 1625 } |
OLD | NEW |