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

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: Move the BackgroundSyncLauncher into /chrome 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 RegisterAutofillDialogControllerAndroid}, 195 RegisterAutofillDialogControllerAndroid},
195 {"AutofillDialogResult", 196 {"AutofillDialogResult",
196 autofill::AutofillDialogResult::RegisterAutofillDialogResult}, 197 autofill::AutofillDialogResult::RegisterAutofillDialogResult},
197 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView:: 198 {"AutofillKeyboardAccessory", autofill::AutofillKeyboardAccessoryView::
198 RegisterAutofillKeyboardAccessoryView}, 199 RegisterAutofillKeyboardAccessoryView},
199 {"AutofillLoggerAndroid", autofill::AutofillLoggerAndroid::Register}, 200 {"AutofillLoggerAndroid", autofill::AutofillLoggerAndroid::Register},
200 {"AutofillPopup", 201 {"AutofillPopup",
201 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid}, 202 autofill::AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid},
202 {"AutofillProfileBridge", autofill::RegisterAutofillProfileBridge}, 203 {"AutofillProfileBridge", autofill::RegisterAutofillProfileBridge},
203 {"AutoSigninSnackbarController", RegisterAutoSigninSnackbarController}, 204 {"AutoSigninSnackbarController", RegisterAutoSigninSnackbarController},
205 {"BackgroundSyncLauncherAndroid",
206 BackgroundSyncLauncherAndroid::RegisterLauncher},
204 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register}, 207 {"BluetoothChooserAndroid", BluetoothChooserAndroid::Register},
205 {"BookmarksBridge", BookmarksBridge::RegisterBookmarksBridge}, 208 {"BookmarksBridge", BookmarksBridge::RegisterBookmarksBridge},
206 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register}, 209 {"CardUnmaskPrompt", autofill::CardUnmaskPromptViewAndroid::Register},
207 {"CertificateViewer", RegisterCertificateViewer}, 210 {"CertificateViewer", RegisterCertificateViewer},
208 {"ChildAccountFeedbackReporter", RegisterChildAccountFeedbackReporter}, 211 {"ChildAccountFeedbackReporter", RegisterChildAccountFeedbackReporter},
209 {"ChildAccountService", RegisterChildAccountService}, 212 {"ChildAccountService", RegisterChildAccountService},
210 {"ChromeApplication", ChromeApplication::RegisterBindings}, 213 {"ChromeApplication", ChromeApplication::RegisterBindings},
211 {"ChromeBrowserProvider", 214 {"ChromeBrowserProvider",
212 ChromeBrowserProvider::RegisterChromeBrowserProvider}, 215 ChromeBrowserProvider::RegisterChromeBrowserProvider},
213 {"ChromeHttpAuthHandler", 216 {"ChromeHttpAuthHandler",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 {"SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid}, 320 {"SSLClientCertificateRequest", RegisterSSLClientCertificateRequestAndroid},
318 {"StartupMetricUtils", RegisterStartupMetricUtils}, 321 {"StartupMetricUtils", RegisterStartupMetricUtils},
319 {"StaticTabSceneLayer", chrome::android::RegisterStaticTabSceneLayer}, 322 {"StaticTabSceneLayer", chrome::android::RegisterStaticTabSceneLayer},
320 {"Sync", syncer::RegisterSyncJni}, 323 {"Sync", syncer::RegisterSyncJni},
321 {"TabAndroid", TabAndroid::RegisterTabAndroid}, 324 {"TabAndroid", TabAndroid::RegisterTabAndroid},
322 {"TabContentManager", chrome::android::RegisterTabContentManager}, 325 {"TabContentManager", chrome::android::RegisterTabContentManager},
323 {"TabListSceneLayer", RegisterTabListSceneLayer}, 326 {"TabListSceneLayer", RegisterTabListSceneLayer},
324 {"TabModelJniBridge", TabModelJniBridge::Register}, 327 {"TabModelJniBridge", TabModelJniBridge::Register},
325 {"TabState", RegisterTabState}, 328 {"TabState", RegisterTabState},
326 {"TabStripSceneLayer", RegisterTabStripSceneLayer}, 329 {"TabStripSceneLayer", RegisterTabStripSceneLayer},
327 {"TabWebContentsDelegateAndroid", 330 {"TabWebContentsDelegateAndroid", RegisterTabWebContentsDelegateAndroid},
328 RegisterTabWebContentsDelegateAndroid},
329 {"TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register}, 331 {"TemplateUrlServiceAndroid", TemplateUrlServiceAndroid::Register},
330 {"ThumbnailTabHelperAndroid", RegisterThumbnailTabHelperAndroid}, 332 {"ThumbnailTabHelperAndroid", RegisterThumbnailTabHelperAndroid},
331 {"ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid}, 333 {"ToolbarModelAndroid", ToolbarModelAndroid::RegisterToolbarModelAndroid},
332 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate}, 334 {"TranslateInfoBarDelegate", RegisterTranslateInfoBarDelegate},
333 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register}, 335 {"TtsPlatformImpl", TtsPlatformImplAndroid::Register},
334 {"UmaSessionStats", RegisterUmaSessionStats}, 336 {"UmaSessionStats", RegisterUmaSessionStats},
335 {"UrlUtilities", RegisterUrlUtilities}, 337 {"UrlUtilities", RegisterUrlUtilities},
336 {"Variations", variations::android::RegisterVariations}, 338 {"Variations", variations::android::RegisterVariations},
337 {"VariationsSession", chrome::android::RegisterVariationsSession}, 339 {"VariationsSession", chrome::android::RegisterVariationsSession},
338 {"WarmupManager", RegisterWarmupManager}, 340 {"WarmupManager", RegisterWarmupManager},
339 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry}, 341 {"WebappRegistry", WebappRegistry::RegisterWebappRegistry},
340 {"WebContentsFactory", RegisterWebContentsFactory}, 342 {"WebContentsFactory", RegisterWebContentsFactory},
341 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge}, 343 {"WebsitePreferenceBridge", RegisterWebsitePreferenceBridge},
342 {"WebsiteSettingsPopupAndroid", 344 {"WebsiteSettingsPopupAndroid",
343 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid}, 345 WebsiteSettingsPopupAndroid::RegisterWebsiteSettingsPopupAndroid},
344 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW) 346 #if defined(ENABLE_PRINTING) && !defined(ENABLE_PRINT_PREVIEW)
345 {"PrintingContext", 347 {"PrintingContext",
346 printing::PrintingContextAndroid::RegisterPrintingContext}, 348 printing::PrintingContextAndroid::RegisterPrintingContext},
347 #endif 349 #endif
348 }; 350 };
349 351
350 bool RegisterBrowserJNI(JNIEnv* env) { 352 bool RegisterBrowserJNI(JNIEnv* env) {
351 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 353 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
352 return RegisterNativeMethods(env, kChromeRegisteredMethods, 354 return RegisterNativeMethods(env, kChromeRegisteredMethods,
353 arraysize(kChromeRegisteredMethods)); 355 arraysize(kChromeRegisteredMethods));
354 } 356 }
355 357
356 } // namespace android 358 } // namespace android
357 } // namespace chrome 359 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698