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

Unified Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 1288903002: Refactor ShortcutHelper and merge in BookmarkUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move test case over too Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/chrome_jni_registrar.cc
diff --git a/chrome/browser/android/chrome_jni_registrar.cc b/chrome/browser/android/chrome_jni_registrar.cc
index 5e35dabfb4a8ae4a165340458f7e533c0405b35a..7e26116476ea2ac69e6e57a7df4de8aeeeb858c3 100644
--- a/chrome/browser/android/chrome_jni_registrar.cc
+++ b/chrome/browser/android/chrome_jni_registrar.cc
@@ -76,6 +76,7 @@
#include "chrome/browser/android/voice_search_tab_helper.h"
#include "chrome/browser/android/warmup_manager.h"
#include "chrome/browser/android/web_contents_factory.h"
+#include "chrome/browser/android/webapps/add_to_homescreen_helper.h"
#include "chrome/browser/autofill/android/personal_data_manager_android.h"
#include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h"
#include "chrome/browser/dom_distiller/tab_utils_android.h"
@@ -169,6 +170,8 @@ static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
{"AccessibilityUtils", AccessibilityUtil::Register},
{"AccountChooserInfoBar", RegisterAccountChooserInfoBar},
{"AccountManagementScreenHelper", AccountManagementScreenHelper::Register},
+ {"AddToHomescreenHelper",
+ AddToHomescreenHelper::RegisterAddToHomescreenHelper},
{"AfterStartupTaskUtils", RegisterAfterStartupTaskUtilsJNI},
{"AnswersImageBridge", RegisterAnswersImageBridge},
{"AppBannerInfoBarAndroid", RegisterAppBannerInfoBarAndroid},
@@ -246,7 +249,8 @@ static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
{"InfoBarContainer", RegisterInfoBarContainer},
{"InvalidationServiceFactory",
invalidation::InvalidationServiceFactoryAndroid::Register},
- {"ShortcutHelper", ShortcutHelper::RegisterShortcutHelper},
+ {"ShortcutHelper",
+ ShortcutHelper::RegisterShortcutHelper},
mlamouri (slow - plz ping) 2015/08/13 13:18:26 nit: why did you need to add a line break here?
{"IntentHelper", RegisterIntentHelper},
{"JavaExceptionReporter", RegisterJavaExceptionReporterJni},
{"JavascriptAppModalDialog",

Powered by Google App Engine
This is Rietveld 408576698