| OLD | NEW |
| 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/browser/chromeos/chrome_browser_main_chromeos.h" | 5 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 | 618 |
| 619 // Start the out-of-memory priority manager here so that we give the most | 619 // Start the out-of-memory priority manager here so that we give the most |
| 620 // amount of time for the other services to start up before we start | 620 // amount of time for the other services to start up before we start |
| 621 // adjusting the oom priority. | 621 // adjusting the oom priority. |
| 622 g_browser_process->oom_priority_manager()->Start(); | 622 g_browser_process->oom_priority_manager()->Start(); |
| 623 | 623 |
| 624 ChromeBrowserMainPartsLinux::PreBrowserStart(); | 624 ChromeBrowserMainPartsLinux::PreBrowserStart(); |
| 625 } | 625 } |
| 626 | 626 |
| 627 void ChromeBrowserMainPartsChromeos::PostBrowserStart() { | 627 void ChromeBrowserMainPartsChromeos::PostBrowserStart() { |
| 628 // Start loading the machine statistics. |
| 629 system::StatisticsProvider::GetInstance()->StartLoadingMachineStatistics(); |
| 630 |
| 628 // These are dependent on the ash::Shell singleton already having been | 631 // These are dependent on the ash::Shell singleton already having been |
| 629 // initialized. | 632 // initialized. |
| 630 power_button_observer_.reset(new PowerButtonObserver); | 633 power_button_observer_.reset(new PowerButtonObserver); |
| 631 user_activity_notifier_.reset(new UserActivityNotifier); | 634 user_activity_notifier_.reset(new UserActivityNotifier); |
| 632 video_activity_notifier_.reset(new VideoActivityNotifier); | 635 video_activity_notifier_.reset(new VideoActivityNotifier); |
| 633 screen_dimming_observer_.reset(new ScreenDimmingObserver); | 636 screen_dimming_observer_.reset(new ScreenDimmingObserver); |
| 634 | 637 |
| 635 ChromeBrowserMainPartsLinux::PostBrowserStart(); | 638 ChromeBrowserMainPartsLinux::PostBrowserStart(); |
| 636 } | 639 } |
| 637 | 640 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 } else if (trial->group() == margin_200mb) { | 757 } else if (trial->group() == margin_200mb) { |
| 755 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; | 758 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; |
| 756 LowMemoryObserver::SetLowMemoryMargin(200); | 759 LowMemoryObserver::SetLowMemoryMargin(200); |
| 757 } else { | 760 } else { |
| 758 LOG(WARNING) << "low_mem: Part of 'default' experiment"; | 761 LOG(WARNING) << "low_mem: Part of 'default' experiment"; |
| 759 } | 762 } |
| 760 } | 763 } |
| 761 } | 764 } |
| 762 | 765 |
| 763 } // namespace chromeos | 766 } // namespace chromeos |
| OLD | NEW |