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

Side by Side Diff: content/app/android/content_main.cc

Issue 11368031: First step towards component build for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: indent Created 8 years, 1 month 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
« no previous file with comments | « base/test/test_support_android.h ('k') | content/browser/android/draw_delegate_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/app/android/content_main.h" 5 #include "content/app/android/content_main.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "content/public/app/content_main.h"
11 #include "content/public/app/content_main_delegate.h" 12 #include "content/public/app/content_main_delegate.h"
12 #include "content/public/app/content_main_runner.h" 13 #include "content/public/app/content_main_runner.h"
13 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
14 #include "jni/ContentMain_jni.h" 15 #include "jni/ContentMain_jni.h"
15 16
16 using base::LazyInstance; 17 using base::LazyInstance;
17 using content::ContentMainRunner; 18 using content::ContentMainRunner;
18 using content::ContentMainDelegate; 19 using content::ContentMainDelegate;
19 20
20 namespace { 21 namespace {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void SetContentMainDelegate(ContentMainDelegate* delegate) { 56 void SetContentMainDelegate(ContentMainDelegate* delegate) {
56 DCHECK(!g_content_main_delegate.Get().get()); 57 DCHECK(!g_content_main_delegate.Get().get());
57 g_content_main_delegate.Get().reset(delegate); 58 g_content_main_delegate.Get().reset(delegate);
58 } 59 }
59 60
60 bool RegisterContentMain(JNIEnv* env) { 61 bool RegisterContentMain(JNIEnv* env) {
61 return RegisterNativesImpl(env); 62 return RegisterNativesImpl(env);
62 } 63 }
63 64
64 } // namespace content 65 } // namespace content
OLDNEW
« no previous file with comments | « base/test/test_support_android.h ('k') | content/browser/android/draw_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698