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

Side by Side Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 2244223002: Determine whether to show "Add to Homescreen" dialog or WebAPK infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_dialog_detector Created 4 years, 4 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 (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/chrome_jni_registrar.h" 5 #include "chrome/browser/android/chrome_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 #include "chrome/browser/android/signin/signin_investigator_android.h" 88 #include "chrome/browser/android/signin/signin_investigator_android.h"
89 #include "chrome/browser/android/signin/signin_manager_android.h" 89 #include "chrome/browser/android/signin/signin_manager_android.h"
90 #include "chrome/browser/android/tab_android.h" 90 #include "chrome/browser/android/tab_android.h"
91 #include "chrome/browser/android/tab_state.h" 91 #include "chrome/browser/android/tab_state.h"
92 #include "chrome/browser/android/tab_web_contents_delegate_android.h" 92 #include "chrome/browser/android/tab_web_contents_delegate_android.h"
93 #include "chrome/browser/android/url_utilities.h" 93 #include "chrome/browser/android/url_utilities.h"
94 #include "chrome/browser/android/voice_search_tab_helper.h" 94 #include "chrome/browser/android/voice_search_tab_helper.h"
95 #include "chrome/browser/android/warmup_manager.h" 95 #include "chrome/browser/android/warmup_manager.h"
96 #include "chrome/browser/android/web_contents_factory.h" 96 #include "chrome/browser/android/web_contents_factory.h"
97 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h" 97 #include "chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h"
98 #include "chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h" 98 #include "chrome/browser/android/webapps/add_to_homescreen_process.h"
99 #include "chrome/browser/android/webapps/webapp_registry.h" 99 #include "chrome/browser/android/webapps/webapp_registry.h"
100 #include "chrome/browser/autofill/android/personal_data_manager_android.h" 100 #include "chrome/browser/autofill/android/personal_data_manager_android.h"
101 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" 101 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h"
102 #include "chrome/browser/dom_distiller/tab_utils_android.h" 102 #include "chrome/browser/dom_distiller/tab_utils_android.h"
103 #include "chrome/browser/history/android/sqlite_cursor.h" 103 #include "chrome/browser/history/android/sqlite_cursor.h"
104 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" 104 #include "chrome/browser/invalidation/invalidation_service_factory_android.h"
105 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h" 105 #include "chrome/browser/media/android/cdm/media_drm_credential_manager.h"
106 #include "chrome/browser/media/android/remote/record_cast_action.h" 106 #include "chrome/browser/media/android/remote/record_cast_action.h"
107 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h" 107 #include "chrome/browser/media/android/remote/remote_media_player_bridge.h"
108 #include "chrome/browser/media/android/router/media_router_android.h" 108 #include "chrome/browser/media/android/router/media_router_android.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 {"SafeJson", safe_json::android::RegisterSafeJsonJni}, 181 {"SafeJson", safe_json::android::RegisterSafeJsonJni},
182 {"Signin", signin::android::RegisterSigninJni}, 182 {"Signin", signin::android::RegisterSigninJni},
183 {"WebContentsDelegateAndroid", 183 {"WebContentsDelegateAndroid",
184 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni}, 184 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni},
185 // Register JNI for chrome classes. 185 // Register JNI for chrome classes.
186 {"AccountChooserDialogAndroid", RegisterAccountChooserDialogAndroid}, 186 {"AccountChooserDialogAndroid", RegisterAccountChooserDialogAndroid},
187 {"AutoSigninFirstRunDialogAndroid", 187 {"AutoSigninFirstRunDialogAndroid",
188 RegisterAutoSigninFirstRunDialogAndroid}, 188 RegisterAutoSigninFirstRunDialogAndroid},
189 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register}, 189 {"AccountManagementScreenHelper", AccountManagementScreenHelper::Register},
190 {"AccountTrackerService", signin::android::RegisterAccountTrackerService}, 190 {"AccountTrackerService", signin::android::RegisterAccountTrackerService},
191 {"AddToHomescreenDialogHelper", 191 {"AddToHomescreenDialogHelper", AddToHomescreenProcess::Register},
192 AddToHomescreenDialogHelper::RegisterAddToHomescreenDialogHelper},
193 {"AfterStartupTaskUtils", RegisterAfterStartupTaskUtilsJNI}, 192 {"AfterStartupTaskUtils", RegisterAfterStartupTaskUtilsJNI},
194 {"AnswersImageBridge", RegisterAnswersImageBridge}, 193 {"AnswersImageBridge", RegisterAnswersImageBridge},
195 {"AppBannerInfoBarDelegateAndroid", 194 {"AppBannerInfoBarDelegateAndroid",
196 banners::RegisterAppBannerInfoBarDelegateAndroid}, 195 banners::RegisterAppBannerInfoBarDelegateAndroid},
197 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register}, 196 {"AppBannerManagerAndroid", banners::AppBannerManagerAndroid::Register},
198 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid}, 197 {"AutocompleteControllerAndroid", RegisterAutocompleteControllerAndroid},
199 {"AutofillSaveCardInfoBar", AutofillSaveCardInfoBar::Register}, 198 {"AutofillSaveCardInfoBar", AutofillSaveCardInfoBar::Register},
200 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView:: 199 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView::
201 RegisterAutofillKeyboardAccessoryView}, 200 RegisterAutofillKeyboardAccessoryView},
202 {"AutofillPopup", 201 {"AutofillPopup",
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 }; 363 };
365 364
366 bool RegisterBrowserJNI(JNIEnv* env) { 365 bool RegisterBrowserJNI(JNIEnv* env) {
367 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 366 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
368 return RegisterNativeMethods(env, kChromeRegisteredMethods, 367 return RegisterNativeMethods(env, kChromeRegisteredMethods,
369 arraysize(kChromeRegisteredMethods)); 368 arraysize(kChromeRegisteredMethods));
370 } 369 }
371 370
372 } // namespace android 371 } // namespace android
373 } // namespace chrome 372 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698