| OLD | NEW |
| 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 "content/app/android/content_main.h" | |
| 6 | |
| 7 #include "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 8 #include "base/base_switches.h" | 6 #include "base/base_switches.h" |
| 9 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 11 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 12 #include "content/public/app/content_main.h" | 10 #include "content/public/app/content_main.h" |
| 13 #include "content/public/app/content_main_delegate.h" | 11 #include "content/public/app/content_main_delegate.h" |
| 14 #include "content/public/app/content_main_runner.h" | 12 #include "content/public/app/content_main_runner.h" |
| 15 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
| 16 #include "jni/ContentMain_jni.h" | 14 #include "jni/ContentMain_jni.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 g_content_runner.Get()->Initialize(params); | 44 g_content_runner.Get()->Initialize(params); |
| 47 } | 45 } |
| 48 return g_content_runner.Get()->Run(); | 46 return g_content_runner.Get()->Run(); |
| 49 } | 47 } |
| 50 | 48 |
| 51 void SetContentMainDelegate(ContentMainDelegate* delegate) { | 49 void SetContentMainDelegate(ContentMainDelegate* delegate) { |
| 52 DCHECK(!g_content_main_delegate.Get().get()); | 50 DCHECK(!g_content_main_delegate.Get().get()); |
| 53 g_content_main_delegate.Get().reset(delegate); | 51 g_content_main_delegate.Get().reset(delegate); |
| 54 } | 52 } |
| 55 | 53 |
| 56 bool RegisterContentMain(JNIEnv* env) { | |
| 57 return RegisterNativesImpl(env); | |
| 58 } | |
| 59 | |
| 60 } // namespace content | 54 } // namespace content |
| OLD | NEW |