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

Side by Side Diff: chrome/android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc

Issue 1305213003: Convert ChromeSyncShell to use ChromePublic infrastructure (try #2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/android/sync_shell/chrome_main_delegate_chrome_sync_shell_andro id.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "sync/test/fake_server/android/fake_server_helper_android.h"
10
11 ChromeMainDelegateAndroid* ChromeMainDelegateAndroid::Create() {
12 return new ChromeMainDelegateChromeSyncShellAndroid();
13 }
14
15 ChromeMainDelegateChromeSyncShellAndroid::
16 ChromeMainDelegateChromeSyncShellAndroid() {
17 }
18
19 ChromeMainDelegateChromeSyncShellAndroid::
20 ~ChromeMainDelegateChromeSyncShellAndroid() {
21 }
22
23 bool ChromeMainDelegateChromeSyncShellAndroid::BasicStartupComplete(
24 int* exit_code) {
25 return ChromeMainDelegateAndroid::BasicStartupComplete(exit_code);
26 }
27
28 int ChromeMainDelegateChromeSyncShellAndroid::RunProcess(
29 const std::string& process_type,
30 const content::MainFunctionParams& main_function_params) {
31 if (process_type.empty()) {
32 // This JNI registration can not be moved to JNI_OnLoad because
33 // FakeServerHelper seems not known by class loader when shared library
34 // is loaded.
35 FakeServerHelperAndroid::Register(base::android::AttachCurrentThread());
36 }
37 return ChromeMainDelegateAndroid::RunProcess(process_type,
38 main_function_params);
39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698