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

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

Issue 1324173002: [Background Sync] Use GcmNetworkManager to start the browser for sync events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@bgsync-fix-background5
Patch Set: Make BackgroundSyncLauncher testable Created 5 years, 2 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/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "chrome/browser/after_startup_task_utils_android.h" 10 #include "chrome/browser/after_startup_task_utils_android.h"
11 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" 11 #include "chrome/browser/android/accessibility/font_size_prefs_android.h"
12 #include "chrome/browser/android/accessibility_util.h" 12 #include "chrome/browser/android/accessibility_util.h"
13 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h" 13 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h"
14 #include "chrome/browser/android/background_sync_launcher_android.h"
14 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h" 15 #include "chrome/browser/android/banners/app_banner_infobar_delegate_android.h"
15 #include "chrome/browser/android/banners/app_banner_manager_android.h" 16 #include "chrome/browser/android/banners/app_banner_manager_android.h"
16 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" 17 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h"
17 #include "chrome/browser/android/bookmarks/edit_bookmark_helper.h" 18 #include "chrome/browser/android/bookmarks/edit_bookmark_helper.h"
18 #include "chrome/browser/android/bookmarks/partner_bookmarks_reader.h" 19 #include "chrome/browser/android/bookmarks/partner_bookmarks_reader.h"
19 #include "chrome/browser/android/bottombar/overlay_panel_content.h" 20 #include "chrome/browser/android/bottombar/overlay_panel_content.h"
20 #include "chrome/browser/android/chrome_application.h" 21 #include "chrome/browser/android/chrome_application.h"
21 #include "chrome/browser/android/compositor/compositor_view.h" 22 #include "chrome/browser/android/compositor/compositor_view.h"
22 #include "chrome/browser/android/compositor/layer_title_cache.h" 23 #include "chrome/browser/android/compositor/layer_title_cache.h"
23 #include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_ layer.h" 24 #include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_ layer.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 RegisterAutofillDialogControllerAndroid}, 196 RegisterAutofillDialogControllerAndroid},
196 {"AutofillDialogResult", 197 {"AutofillDialogResult",
197 autofill::AutofillDialogResult::RegisterAutofillDialogResult}, 198 autofill::AutofillDialogResult::RegisterAutofillDialogResult},
198 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView:: 199 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView::
199 RegisterAutofillKeyboardAccessoryView}, 200 RegisterAutofillKeyboardAccessoryView},
200 {"AutofillLoggerAndroid", autofill::AutofillLoggerAndroid::Register}, 201 {"AutofillLoggerAndroid", autofill::AutofillLoggerAndroid::Register},
201 {"AutofillPopup", 202 {"AutofillPopup",
202 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid}, 203 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid},
203 {"AutofillProfileBridge", autofill::RegisterAutofillProfileBridge}, 204 {"AutofillProfileBridge", autofill::RegisterAutofillProfileBridge},
204 {"AutoSigninSnackbarController", RegisterAutoSigninSnackbarController}, 205 {"AutoSigninSnackbarController", RegisterAutoSigninSnackbarController},
206 {"BackgroundSyncLauncherAndroid",
207 BackgroundSyncLauncherAndroid::RegisterLauncher},
205 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register}, 208 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register},
206 {"BookmarksBridge", BookmarksBridge::RegisterBookmarksBridge}, 209 {"BookmarksBridge", BookmarksBridge::RegisterBookmarksBridge},
207 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register}, 210 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register},
208 {"CertificateViewer", RegisterCertificateViewer}, 211 {"CertificateViewer", RegisterCertificateViewer},
209 {"ChildAccountFeedbackReporter", RegisterChildAccountFeedbackReporter}, 212 {"ChildAccountFeedbackReporter", RegisterChildAccountFeedbackReporter},
210 {"ChildAccountService", RegisterChildAccountService}, 213 {"ChildAccountService", RegisterChildAccountService},
211 {"ChromeApplication", ChromeApplication::RegisterBindings}, 214 {"ChromeApplication", ChromeApplication::RegisterBindings},
212 {"ChromeBrowserProvider", 215 {"ChromeBrowserProvider",
213 ChromeBrowserProvider::RegisterChromeBrowserProvider}, 216 ChromeBrowserProvider::RegisterChromeBrowserProvider},
214 {"ChromeHttpAuthHandler", 217 {"ChromeHttpAuthHandler",
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 }; 352 };
350 353
351 bool RegisterBrowserJNI(JNIEnv* env) { 354 bool RegisterBrowserJNI(JNIEnv* env) {
352 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 355 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
353 return RegisterNativeMethods(env, kChromeRegisteredMethods, 356 return RegisterNativeMethods(env, kChromeRegisteredMethods,
354 arraysize(kChromeRegisteredMethods)); 357 arraysize(kChromeRegisteredMethods));
355 } 358 }
356 359
357 } // namespace android 360 } // namespace android
358 } // namespace chrome 361 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698