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

Side by Side Diff: chrome/android/testshell/chrome_main_delegate_testshell_android.cc

Issue 108803002: Make TabBase non abstract (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years 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 | Annotate | Revision Log
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/android/testshell/chrome_main_delegate_testshell_android.h" 5 #include "chrome/android/testshell/chrome_main_delegate_testshell_android.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 "chrome/android/testshell/testshell_tab.h"
10 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" 9 #include "chrome/browser/search_engines/template_url_prepopulate_data.h"
11 10
12 static const char kDefaultCountryCode[] = "US"; 11 static const char kDefaultCountryCode[] = "US";
13 12
14 static base::android::RegistrationMethod kRegistrationMethods[] = {
15 { "TestShellTab", TestShellTab::RegisterTestShellTab },
16 };
17
18 ChromeMainDelegateAndroid* ChromeMainDelegateAndroid::Create() { 13 ChromeMainDelegateAndroid* ChromeMainDelegateAndroid::Create() {
19 return new ChromeMainDelegateTestShellAndroid(); 14 return new ChromeMainDelegateTestShellAndroid();
20 } 15 }
21 16
22 ChromeMainDelegateTestShellAndroid::ChromeMainDelegateTestShellAndroid() { 17 ChromeMainDelegateTestShellAndroid::ChromeMainDelegateTestShellAndroid() {
23 } 18 }
24 19
25 ChromeMainDelegateTestShellAndroid::~ChromeMainDelegateTestShellAndroid() { 20 ChromeMainDelegateTestShellAndroid::~ChromeMainDelegateTestShellAndroid() {
26 } 21 }
27 22
28 bool ChromeMainDelegateTestShellAndroid::BasicStartupComplete(int* exit_code) { 23 bool ChromeMainDelegateTestShellAndroid::BasicStartupComplete(int* exit_code) {
29 TemplateURLPrepopulateData::InitCountryCode(kDefaultCountryCode); 24 TemplateURLPrepopulateData::InitCountryCode(kDefaultCountryCode);
30 return ChromeMainDelegateAndroid::BasicStartupComplete(exit_code); 25 return ChromeMainDelegateAndroid::BasicStartupComplete(exit_code);
31 } 26 }
32 27
33 bool ChromeMainDelegateTestShellAndroid::RegisterApplicationNativeMethods(
34 JNIEnv* env) {
35 return ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(env) &&
36 base::android::RegisterNativeMethods(env,
37 kRegistrationMethods,
38 arraysize(kRegistrationMethods));
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698