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

Side by Side Diff: content/shell/shell_browser_main_parts.cc

Issue 10823051: ContentShell rendering support on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Ted's comments Created 8 years, 4 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 | 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 "content/shell/shell_browser_main_parts.h" 5 #include "content/shell/shell_browser_main_parts.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 14 matching lines...) Expand all
25 #include "net/android/network_change_notifier_factory.h" 25 #include "net/android/network_change_notifier_factory.h"
26 #endif 26 #endif
27 27
28 namespace content { 28 namespace content {
29 29
30 static GURL GetStartupURL() { 30 static GURL GetStartupURL() {
31 CommandLine* command_line = CommandLine::ForCurrentProcess(); 31 CommandLine* command_line = CommandLine::ForCurrentProcess();
32 if (command_line->HasSwitch(switches::kContentBrowserTest)) 32 if (command_line->HasSwitch(switches::kContentBrowserTest))
33 return GURL(); 33 return GURL();
34 const CommandLine::StringVector& args = command_line->GetArgs(); 34 const CommandLine::StringVector& args = command_line->GetArgs();
35
36 #if defined(OS_ANDROID)
37 // Delay renderer creation on Android until surface is ready.
38 return GURL();
39 #endif
40
35 if (args.empty()) 41 if (args.empty())
36 return GURL("http://www.google.com/"); 42 return GURL("http://www.google.com/");
37 43
38 return GURL(args[0]); 44 return GURL(args[0]);
39 } 45 }
40 46
41 ShellBrowserMainParts::ShellBrowserMainParts( 47 ShellBrowserMainParts::ShellBrowserMainParts(
42 const MainFunctionParams& parameters) 48 const MainFunctionParams& parameters)
43 : BrowserMainParts(), 49 : BrowserMainParts(),
44 parameters_(parameters), 50 parameters_(parameters),
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 #if defined(USE_AURA) 117 #if defined(USE_AURA)
112 Shell::PlatformExit(); 118 Shell::PlatformExit();
113 #endif 119 #endif
114 if (devtools_delegate_) 120 if (devtools_delegate_)
115 devtools_delegate_->Stop(); 121 devtools_delegate_->Stop();
116 browser_context_.reset(); 122 browser_context_.reset();
117 off_the_record_browser_context_.reset(); 123 off_the_record_browser_context_.reset();
118 } 124 }
119 125
120 } // namespace 126 } // namespace
OLDNEW
« content/shell/android/shell_manager.cc ('K') | « content/shell/shell_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698