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

Side by Side Diff: chrome/renderer/renderer_main.cc

Issue 10896: Re-do the way browser windows are shown:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/platform_thread.h" 8 #include "base/platform_thread.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 25 matching lines...) Expand all
36 36
37 if (command_line.HasSwitch(switches::kRendererStartupDialog)) { 37 if (command_line.HasSwitch(switches::kRendererStartupDialog)) {
38 std::wstring title = l10n_util::GetString(IDS_PRODUCT_NAME); 38 std::wstring title = l10n_util::GetString(IDS_PRODUCT_NAME);
39 title += L" renderer"; // makes attaching to process easier 39 title += L" renderer"; // makes attaching to process easier
40 MessageBox(NULL, L"renderer starting...", title.c_str(), 40 MessageBox(NULL, L"renderer starting...", title.c_str(),
41 MB_OK | MB_SETFOREGROUND); 41 MB_OK | MB_SETFOREGROUND);
42 } 42 }
43 } 43 }
44 44
45 // mainline routine for running as the Rendererer process 45 // mainline routine for running as the Rendererer process
46 int RendererMain(CommandLine &parsed_command_line, int show_command, 46 int RendererMain(CommandLine &parsed_command_line,
47 sandbox::TargetServices* target_services) { 47 sandbox::TargetServices* target_services) {
48 StatsScope<StatsCounterTimer> 48 StatsScope<StatsCounterTimer>
49 startup_timer(chrome::Counters::renderer_main()); 49 startup_timer(chrome::Counters::renderer_main());
50 50
51 // The main thread of the renderer services IO. 51 // The main thread of the renderer services IO.
52 MessageLoopForIO main_message_loop; 52 MessageLoopForIO main_message_loop;
53 std::wstring app_name = chrome::kBrowserAppName; 53 std::wstring app_name = chrome::kBrowserAppName;
54 PlatformThread::SetName(WideToASCII(app_name + L"_RendererMain").c_str()); 54 PlatformThread::SetName(WideToASCII(app_name + L"_RendererMain").c_str());
55 55
56 CoInitialize(NULL); 56 CoInitialize(NULL);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 MessageLoop::current()->Run(); 108 MessageLoop::current()->Run();
109 } 109 }
110 110
111 RenderProcess::GlobalCleanup(); 111 RenderProcess::GlobalCleanup();
112 } 112 }
113 113
114 CoUninitialize(); 114 CoUninitialize();
115 return 0; 115 return 0;
116 } 116 }
117 117
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698