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

Unified Diff: chrome/android/testshell/chrome_main_delegate_testshell_android.cc

Issue 11085008: [Android] Upstream content detection and ChromeBrowserProvider tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase after landing resources separately. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/testshell/chrome_main_delegate_testshell_android.cc
diff --git a/chrome/android/testshell/chrome_main_delegate_testshell_android.cc b/chrome/android/testshell/chrome_main_delegate_testshell_android.cc
index 25d6623462b70d0c1490cd390ecd5186a164bfb7..0e1b6566fdae06de9d6cbb41eaf25299a54c211f 100644
--- a/chrome/android/testshell/chrome_main_delegate_testshell_android.cc
+++ b/chrome/android/testshell/chrome_main_delegate_testshell_android.cc
@@ -7,6 +7,9 @@
#include "base/android/jni_android.h"
#include "base/android/jni_registrar.h"
#include "chrome/android/testshell/tab_manager.h"
+#include "chrome/browser/search_engines/template_url_prepopulate_data.h"
+
+static const char kDefaultCountryCode[] = "US";
static base::android::RegistrationMethod kRegistrationMethods[] = {
{ "TabManager", chrome::RegisterTabManager },
@@ -18,6 +21,11 @@ ChromeMainDelegateTestShellAndroid::ChromeMainDelegateTestShellAndroid() {
ChromeMainDelegateTestShellAndroid::~ChromeMainDelegateTestShellAndroid() {
}
+bool ChromeMainDelegateTestShellAndroid::BasicStartupComplete(int* exit_code) {
+ TemplateURLPrepopulateData::InitCountryCode(kDefaultCountryCode);
+ return ChromeMainDelegateAndroid::BasicStartupComplete(exit_code);
+}
+
bool ChromeMainDelegateTestShellAndroid::RegisterApplicationNativeMethods(
JNIEnv* env) {
if (!ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(env))

Powered by Google App Engine
This is Rietveld 408576698