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

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

Issue 188443003: Parsing /proc/cpuinfo for model on Android and Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
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/cpu.h"
8 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
9 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
10 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
11 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
12 #include "base/metrics/statistics_recorder.h" 13 #include "base/metrics/statistics_recorder.h"
13 #include "base/metrics/stats_counters.h" 14 #include "base/metrics/stats_counters.h"
14 #include "base/path_service.h" 15 #include "base/path_service.h"
15 #include "base/process/memory.h" 16 #include "base/process/memory.h"
16 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
17 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 PathService::Override(content::CHILD_PROCESS_EXE, 642 PathService::Override(content::CHILD_PROCESS_EXE,
642 chrome::GetVersionedDirectory(). 643 chrome::GetVersionedDirectory().
643 Append(chrome::kHelperProcessExecutablePath)); 644 Append(chrome::kHelperProcessExecutablePath));
644 645
645 InitMacCrashReporter(command_line, process_type); 646 InitMacCrashReporter(command_line, process_type);
646 #endif 647 #endif
647 648
648 #if defined(OS_WIN) 649 #if defined(OS_WIN)
649 child_process_logging::Init(); 650 child_process_logging::Init();
650 #endif 651 #endif
652 #if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX))
653 // Create an instance of the CPU class to parse /proc/cpuinfo and cache
654 // cpu_brand info.
655 base::CPU cpu_info;
656 #endif
651 657
652 // Initialize the user data dir for any process type that needs it. 658 // Initialize the user data dir for any process type that needs it.
653 if (chrome::ProcessNeedsProfileDir(process_type)) 659 if (chrome::ProcessNeedsProfileDir(process_type))
654 InitializeUserDataDir(); 660 InitializeUserDataDir();
655 661
656 stats_counter_timer_.reset(new base::StatsCounterTimer("Chrome.Init")); 662 stats_counter_timer_.reset(new base::StatsCounterTimer("Chrome.Init"));
657 startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer> 663 startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer>
658 (*stats_counter_timer_)); 664 (*stats_counter_timer_));
659 665
660 // Enable the heap profiler as early as possible! 666 // Enable the heap profiler as early as possible!
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 } 903 }
898 904
899 content::ContentUtilityClient* 905 content::ContentUtilityClient*
900 ChromeMainDelegate::CreateContentUtilityClient() { 906 ChromeMainDelegate::CreateContentUtilityClient() {
901 #if defined(CHROME_MULTIPLE_DLL_BROWSER) 907 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
902 return NULL; 908 return NULL;
903 #else 909 #else
904 return g_chrome_content_utility_client.Pointer(); 910 return g_chrome_content_utility_client.Pointer();
905 #endif 911 #endif
906 } 912 }
OLDNEW
« base/cpu.cc ('K') | « base/cpu.cc ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698