Index: chrome/android/shell_for_test/chrome_main_delegate_chrome_shell_for_test_android.cc |
diff --git a/chrome/android/shell_for_test/chrome_main_delegate_chrome_shell_for_test_android.cc b/chrome/android/shell_for_test/chrome_main_delegate_chrome_shell_for_test_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3c90c02bdad34ebd86acb6a0aca35e479cbc4c08 |
--- /dev/null |
+++ b/chrome/android/shell_for_test/chrome_main_delegate_chrome_shell_for_test_android.cc |
@@ -0,0 +1,38 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/android/shell_for_test/chrome_main_delegate_chrome_shell_for_test_android.h" |
+ |
+#include "base/android/jni_android.h" |
+#include "base/android/jni_registrar.h" |
+#include "components/search_engines/template_url_prepopulate_data.h" |
+#include "sync/test/fake_server/android/fake_server_helper_android.h" |
+ |
+static const char kDefaultCountryCode[] = "US"; |
+ |
+ChromeMainDelegateAndroid* ChromeMainDelegateAndroid::Create() { |
+ return new ChromeMainDelegateChromeShellForTestAndroid(); |
+} |
+ |
+ChromeMainDelegateChromeShellForTestAndroid:: |
+ChromeMainDelegateChromeShellForTestAndroid() { |
+} |
+ |
+ChromeMainDelegateChromeShellForTestAndroid:: |
+~ChromeMainDelegateChromeShellForTestAndroid() { |
+} |
+ |
+bool |
+ChromeMainDelegateChromeShellForTestAndroid::RegisterApplicationNativeMethods( |
+ JNIEnv* env) { |
+ return ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(env) && |
+ FakeServerHelperAndroid::Register(env); |
+} |
+ |
+bool ChromeMainDelegateChromeShellForTestAndroid::BasicStartupComplete( |
+ int* exit_code) { |
+ TemplateURLPrepopulateData::InitCountryCode(kDefaultCountryCode); |
+ return ChromeMainDelegateAndroid::BasicStartupComplete(exit_code); |
+} |
+ |