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

Side by Side Diff: chrome/app/chrome_main.cc

Issue 7249003: Move GetVersionStringModifier() and GetChannel() from platform_util_* to chrome_version_info_* (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: correct nits Created 9 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/app/chrome_main.h" 5 #include "chrome/app/chrome_main.h"
6 6
7 #include "app/app_paths.h" 7 #include "app/app_paths.h"
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/debugger.h" 10 #include "base/debug/debugger.h"
11 #include "base/i18n/icu_util.h" 11 #include "base/i18n/icu_util.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/mac/scoped_nsautorelease_pool.h" 13 #include "base/mac/scoped_nsautorelease_pool.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/metrics/stats_counters.h" 15 #include "base/metrics/stats_counters.h"
16 #include "base/metrics/stats_table.h" 16 #include "base/metrics/stats_table.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/process_util.h" 18 #include "base/process_util.h"
19 #include "base/stringprintf.h" 19 #include "base/stringprintf.h"
20 #include "base/string_number_conversions.h" 20 #include "base/string_number_conversions.h"
21 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "crypto/nss_util.h" 23 #include "crypto/nss_util.h"
24 #include "chrome/browser/defaults.h" 24 #include "chrome/browser/defaults.h"
25 #include "chrome/browser/diagnostics/diagnostics_main.h" 25 #include "chrome/browser/diagnostics/diagnostics_main.h"
26 #include "chrome/browser/platform_util.h"
27 #include "chrome/common/chrome_constants.h" 26 #include "chrome/common/chrome_constants.h"
28 #include "chrome/common/chrome_content_client.h" 27 #include "chrome/common/chrome_content_client.h"
29 #include "chrome/common/chrome_content_plugin_client.h" 28 #include "chrome/common/chrome_content_plugin_client.h"
30 #include "chrome/common/chrome_paths.h" 29 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/chrome_paths_internal.h" 30 #include "chrome/common/chrome_paths_internal.h"
32 #include "chrome/common/chrome_switches.h" 31 #include "chrome/common/chrome_switches.h"
33 #include "chrome/common/chrome_version_info.h" 32 #include "chrome/common/chrome_version_info.h"
34 #include "chrome/common/logging_chrome.h" 33 #include "chrome/common/logging_chrome.h"
35 #include "chrome/common/profiling.h" 34 #include "chrome/common/profiling.h"
36 #include "chrome/common/url_constants.h" 35 #include "chrome/common/url_constants.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 if (command_line.HasSwitch(switches::kProductVersion)) { 379 if (command_line.HasSwitch(switches::kProductVersion)) {
381 printf("%s\n", version_info.Version().c_str()); 380 printf("%s\n", version_info.Version().c_str());
382 return true; 381 return true;
383 } 382 }
384 #endif 383 #endif
385 384
386 if (command_line.HasSwitch(switches::kVersion)) { 385 if (command_line.HasSwitch(switches::kVersion)) {
387 printf("%s %s %s\n", 386 printf("%s %s %s\n",
388 version_info.Name().c_str(), 387 version_info.Name().c_str(),
389 version_info.Version().c_str(), 388 version_info.Version().c_str(),
390 platform_util::GetVersionStringModifier().c_str()); 389 chrome::VersionInfo::GetVersionStringModifier().c_str());
391 return true; 390 return true;
392 } 391 }
393 392
394 return false; 393 return false;
395 } 394 }
396 395
397 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 396 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
398 // Show the man page if --help or -h is on the command line. 397 // Show the man page if --help or -h is on the command line.
399 void HandleHelpSwitches(const CommandLine& command_line) { 398 void HandleHelpSwitches(const CommandLine& command_line) {
400 if (command_line.HasSwitch(switches::kHelp) || 399 if (command_line.HasSwitch(switches::kHelp) ||
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 838
840 if (SubprocessNeedsResourceBundle(process_type)) 839 if (SubprocessNeedsResourceBundle(process_type))
841 ResourceBundle::CleanupSharedInstance(); 840 ResourceBundle::CleanupSharedInstance();
842 841
843 logging::CleanupChromeLogging(); 842 logging::CleanupChromeLogging();
844 843
845 chrome_main::LowLevelShutdown(); 844 chrome_main::LowLevelShutdown();
846 845
847 return exit_code; 846 return exit_code;
848 } 847 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698