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

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

Issue 3828009: Move scoped_nsdisable_screen_update from base to app/mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | « chrome/app/breakpad_mac.mm ('k') | chrome/browser/browser_main.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // TODO(port): the ifdefs in here are a first step towards trying to determine 5 // TODO(port): the ifdefs in here are a first step towards trying to determine
6 // the correct abstraction for all the OS functionality required at this 6 // the correct abstraction for all the OS functionality required at this
7 // stage of process initialization. It should not be taken as a final 7 // stage of process initialization. It should not be taken as a final
8 // abstraction. 8 // abstraction.
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 21 matching lines...) Expand all
32 #include <string.h> 32 #include <string.h>
33 #endif 33 #endif
34 34
35 #include "app/app_paths.h" 35 #include "app/app_paths.h"
36 #include "app/app_switches.h" 36 #include "app/app_switches.h"
37 #include "app/resource_bundle.h" 37 #include "app/resource_bundle.h"
38 #include "base/at_exit.h" 38 #include "base/at_exit.h"
39 #include "base/command_line.h" 39 #include "base/command_line.h"
40 #include "base/debug_util.h" 40 #include "base/debug_util.h"
41 #include "base/i18n/icu_util.h" 41 #include "base/i18n/icu_util.h"
42 #include "base/mac/scoped_nsautorelease_pool.h"
42 #include "base/message_loop.h" 43 #include "base/message_loop.h"
43 #include "base/metrics/stats_counters.h" 44 #include "base/metrics/stats_counters.h"
44 #include "base/metrics/stats_table.h" 45 #include "base/metrics/stats_table.h"
45 #include "base/path_service.h" 46 #include "base/path_service.h"
46 #include "base/process_util.h" 47 #include "base/process_util.h"
47 #include "base/scoped_nsautorelease_pool.h"
48 #include "base/string_number_conversions.h" 48 #include "base/string_number_conversions.h"
49 #include "base/string_util.h" 49 #include "base/string_util.h"
50 #include "base/utf_string_conversions.h" 50 #include "base/utf_string_conversions.h"
51 #include "chrome/browser/defaults.h" 51 #include "chrome/browser/defaults.h"
52 #include "chrome/browser/diagnostics/diagnostics_main.h" 52 #include "chrome/browser/diagnostics/diagnostics_main.h"
53 #include "chrome/browser/renderer_host/render_process_host.h" 53 #include "chrome/browser/renderer_host/render_process_host.h"
54 #include "chrome/browser/platform_util.h" 54 #include "chrome/browser/platform_util.h"
55 #include "chrome/common/chrome_constants.h" 55 #include "chrome/common/chrome_constants.h"
56 #include "chrome/common/chrome_counters.h" 56 #include "chrome/common/chrome_counters.h"
57 #include "chrome/common/chrome_descriptors.h" 57 #include "chrome/common/chrome_descriptors.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 477
478 RegisterInvalidParamHandler(); 478 RegisterInvalidParamHandler();
479 479
480 // The exit manager is in charge of calling the dtors of singleton objects. 480 // The exit manager is in charge of calling the dtors of singleton objects.
481 base::AtExitManager exit_manager; 481 base::AtExitManager exit_manager;
482 482
483 // We need this pool for all the objects created before we get to the 483 // We need this pool for all the objects created before we get to the
484 // event loop, but we don't want to leave them hanging around until the 484 // event loop, but we don't want to leave them hanging around until the
485 // app quits. Each "main" needs to flush this pool right before it goes into 485 // app quits. Each "main" needs to flush this pool right before it goes into
486 // its main event loop to get rid of the cruft. 486 // its main event loop to get rid of the cruft.
487 base::ScopedNSAutoreleasePool autorelease_pool; 487 base::mac::ScopedNSAutoreleasePool autorelease_pool;
488 488
489 #if defined(OS_CHROMEOS) 489 #if defined(OS_CHROMEOS)
490 chromeos::BootTimesLoader::Get()->SaveChromeMainStats(); 490 chromeos::BootTimesLoader::Get()->SaveChromeMainStats();
491 #endif 491 #endif
492 492
493 #if defined(OS_POSIX) 493 #if defined(OS_POSIX)
494 base::GlobalDescriptors* g_fds = Singleton<base::GlobalDescriptors>::get(); 494 base::GlobalDescriptors* g_fds = Singleton<base::GlobalDescriptors>::get();
495 g_fds->Set(kPrimaryIPCChannel, 495 g_fds->Set(kPrimaryIPCChannel,
496 kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor); 496 kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor);
497 #if defined(OS_LINUX) 497 #if defined(OS_LINUX)
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 965
966 logging::CleanupChromeLogging(); 966 logging::CleanupChromeLogging();
967 967
968 #if defined(OS_MACOSX) && defined(GOOGLE_CHROME_BUILD) 968 #if defined(OS_MACOSX) && defined(GOOGLE_CHROME_BUILD)
969 // TODO(mark): See the TODO(mark) above at InitCrashReporter. 969 // TODO(mark): See the TODO(mark) above at InitCrashReporter.
970 DestructCrashReporter(); 970 DestructCrashReporter();
971 #endif // OS_MACOSX && GOOGLE_CHROME_BUILD 971 #endif // OS_MACOSX && GOOGLE_CHROME_BUILD
972 972
973 return rv; 973 return rv;
974 } 974 }
OLDNEW
« no previous file with comments | « chrome/app/breakpad_mac.mm ('k') | chrome/browser/browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698