Add an UMA stat to be able to see if the User pods are show on start screen,
[chromium-blink-merge.git] / chrome / android / sync_shell / chrome_main_delegate_chrome_sync_shell_android.cc
blobbcf45e527ea546911adc6d5e0fc3025c8f8576b1
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.
5 #include "chrome/android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h"
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"
11 ChromeMainDelegateAndroid* ChromeMainDelegateAndroid::Create() {
12 return new ChromeMainDelegateChromeSyncShellAndroid();
15 ChromeMainDelegateChromeSyncShellAndroid::
16 ChromeMainDelegateChromeSyncShellAndroid() {
19 ChromeMainDelegateChromeSyncShellAndroid::
20 ~ChromeMainDelegateChromeSyncShellAndroid() {
23 bool ChromeMainDelegateChromeSyncShellAndroid::BasicStartupComplete(
24 int* exit_code) {
25 return ChromeMainDelegateAndroid::BasicStartupComplete(exit_code);
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());
37 return ChromeMainDelegateAndroid::RunProcess(process_type,
38 main_function_params);