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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |