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

Side by Side Diff: chrome/utility/utility_main.cc

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/app_switches.h" 5 #include "app/app_switches.h"
6 #include "app/hi_res_timer_manager.h" 6 #include "app/hi_res_timer_manager.h"
7 #include "app/system_monitor.h" 7 #include "app/system_monitor.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "chrome/common/child_process.h" 13 #include "chrome/common/child_process.h"
14 #include "chrome/common/chrome_constants.h" 14 #include "chrome/common/chrome_constants.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/extensions/extension_l10n_util.h" 16 #include "chrome/common/extensions/extension_l10n_util.h"
18 #include "chrome/common/logging_chrome.h" 17 #include "chrome/common/logging_chrome.h"
19 #include "chrome/common/main_function_params.h" 18 #include "chrome/common/main_function_params.h"
20 #include "chrome/utility/utility_thread.h" 19 #include "chrome/utility/utility_thread.h"
21 20
22 #if defined(OS_WIN) 21 #if defined(OS_WIN)
23 #include "chrome/common/sandbox_init_wrapper.h" 22 #include "chrome/common/sandbox_init_wrapper.h"
24 #include "sandbox/src/sandbox.h" 23 #include "sandbox/src/sandbox.h"
25 #endif // defined(OS_WIN) 24 #endif // defined(OS_WIN)
26 25
(...skipping 28 matching lines...) Expand all
55 54
56 CommandLine* command_line = CommandLine::ForCurrentProcess(); 55 CommandLine* command_line = CommandLine::ForCurrentProcess();
57 std::string lang = command_line->GetSwitchValueASCII(switches::kLang); 56 std::string lang = command_line->GetSwitchValueASCII(switches::kLang);
58 if (!lang.empty()) 57 if (!lang.empty())
59 extension_l10n_util::SetProcessLocale(lang); 58 extension_l10n_util::SetProcessLocale(lang);
60 59
61 MessageLoop::current()->Run(); 60 MessageLoop::current()->Run();
62 61
63 return 0; 62 return 0;
64 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698