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

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

Issue 10512010: Tighten up DEPS some more. NaCl/service process code are including internal content files. Fix the … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win build by beefing up filename_rules.gypi Created 8 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 | « chrome/app/breakpad_linuxish.cc ('k') | chrome/app/nacl_fork_delegate_linux.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) 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 "chrome/app/chrome_main_delegate.h" 5 #include "chrome/app/chrome_main_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/common/chrome_paths.h" 22 #include "chrome/common/chrome_paths.h"
23 #include "chrome/common/chrome_paths_internal.h" 23 #include "chrome/common/chrome_paths_internal.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/chrome_version_info.h" 25 #include "chrome/common/chrome_version_info.h"
26 #include "chrome/common/logging_chrome.h" 26 #include "chrome/common/logging_chrome.h"
27 #include "chrome/common/profiling.h" 27 #include "chrome/common/profiling.h"
28 #include "chrome/common/url_constants.h" 28 #include "chrome/common/url_constants.h"
29 #include "chrome/plugin/chrome_content_plugin_client.h" 29 #include "chrome/plugin/chrome_content_plugin_client.h"
30 #include "chrome/renderer/chrome_content_renderer_client.h" 30 #include "chrome/renderer/chrome_content_renderer_client.h"
31 #include "chrome/utility/chrome_content_utility_client.h" 31 #include "chrome/utility/chrome_content_utility_client.h"
32 #include "content/common/content_counters.h"
33 #include "content/public/common/content_client.h" 32 #include "content/public/common/content_client.h"
34 #include "content/public/common/content_paths.h" 33 #include "content/public/common/content_paths.h"
35 #include "content/public/common/content_switches.h" 34 #include "content/public/common/content_switches.h"
36 #include "ui/base/ui_base_switches.h" 35 #include "ui/base/ui_base_switches.h"
37 36
38 #if defined(OS_WIN) 37 #if defined(OS_WIN)
39 #include <algorithm> 38 #include <algorithm>
40 #include <atlbase.h> 39 #include <atlbase.h>
41 #include <malloc.h> 40 #include <malloc.h>
42 #include "base/string_util.h" 41 #include "base/string_util.h"
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 #if defined(OS_MACOSX) || defined(OS_WIN) 566 #if defined(OS_MACOSX) || defined(OS_WIN)
568 CheckUserDataDirPolicy(&user_data_dir); 567 CheckUserDataDirPolicy(&user_data_dir);
569 #endif 568 #endif
570 if (!user_data_dir.empty()) { 569 if (!user_data_dir.empty()) {
571 CHECK(PathService::OverrideAndCreateIfNeeded( 570 CHECK(PathService::OverrideAndCreateIfNeeded(
572 chrome::DIR_USER_DATA, 571 chrome::DIR_USER_DATA,
573 user_data_dir, 572 user_data_dir,
574 chrome::ProcessNeedsProfileDir(process_type))); 573 chrome::ProcessNeedsProfileDir(process_type)));
575 } 574 }
576 575
576 base::StatsCounterTimer stats_counter_timer("Chrome.Init");
577 startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer> 577 startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer>
578 (content::Counters::chrome_main())); 578 (stats_counter_timer));
579 579
580 // Enable the heap profiler as early as possible! 580 // Enable the heap profiler as early as possible!
581 EnableHeapProfiler(command_line); 581 EnableHeapProfiler(command_line);
582 582
583 // Enable Message Loop related state asap. 583 // Enable Message Loop related state asap.
584 if (command_line.HasSwitch(switches::kMessageLoopHistogrammer)) 584 if (command_line.HasSwitch(switches::kMessageLoopHistogrammer))
585 MessageLoop::EnableHistogrammer(true); 585 MessageLoop::EnableHistogrammer(true);
586 586
587 if (command_line.HasSwitch(switches::kSingleProcess)) 587 if (command_line.HasSwitch(switches::kSingleProcess))
588 InitializeChromeContentRendererClient(); 588 InitializeChromeContentRendererClient();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 728
729 #if defined(USE_LINUX_BREAKPAD) 729 #if defined(USE_LINUX_BREAKPAD)
730 // Needs to be called after we have chrome::DIR_USER_DATA. BrowserMain sets 730 // Needs to be called after we have chrome::DIR_USER_DATA. BrowserMain sets
731 // this up for the browser process in a different manner. 731 // this up for the browser process in a different manner.
732 InitCrashReporter(); 732 InitCrashReporter();
733 #endif 733 #endif
734 734
735 InitializeChromeContentClient(process_type); 735 InitializeChromeContentClient(process_type);
736 } 736 }
737 #endif // OS_MACOSX 737 #endif // OS_MACOSX
OLDNEW
« no previous file with comments | « chrome/app/breakpad_linuxish.cc ('k') | chrome/app/nacl_fork_delegate_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698