| 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 "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/chromeos/chromeos_version.h" | 12 #include "base/chromeos/chromeos_version.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/string_split.h" | 17 #include "base/string_split.h" |
| 18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/chromeos/audio/audio_handler.h" | 19 #include "chrome/browser/chromeos/audio/audio_handler.h" |
| 20 #include "chrome/browser/chromeos/boot_times_loader.h" | 20 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 21 #include "chrome/browser/chromeos/cros/cros_library.h" | 21 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 22 #include "chrome/browser/chromeos/cryptohome/async_method_caller.h" | |
| 23 #include "chrome/browser/chromeos/dbus/cros_dbus_service.h" | 22 #include "chrome/browser/chromeos/dbus/cros_dbus_service.h" |
| 24 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" | 23 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" |
| 25 #include "chrome/browser/chromeos/external_metrics.h" | 24 #include "chrome/browser/chromeos/external_metrics.h" |
| 26 #include "chrome/browser/chromeos/imageburner/burn_manager.h" | 25 #include "chrome/browser/chromeos/imageburner/burn_manager.h" |
| 27 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 26 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 28 #include "chrome/browser/chromeos/input_method/xkeyboard.h" | 27 #include "chrome/browser/chromeos/input_method/xkeyboard.h" |
| 29 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout.h" | 28 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout.h" |
| 30 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" | 29 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" |
| 31 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 30 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 32 #include "chrome/browser/chromeos/login/authenticator.h" | 31 #include "chrome/browser/chromeos/login/authenticator.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "chrome/browser/policy/network_configuration_updater.h" | 64 #include "chrome/browser/policy/network_configuration_updater.h" |
| 66 #include "chrome/browser/prefs/pref_service.h" | 65 #include "chrome/browser/prefs/pref_service.h" |
| 67 #include "chrome/browser/profiles/profile.h" | 66 #include "chrome/browser/profiles/profile.h" |
| 68 #include "chrome/browser/profiles/profile_manager.h" | 67 #include "chrome/browser/profiles/profile_manager.h" |
| 69 #include "chrome/browser/signin/token_service_factory.h" | 68 #include "chrome/browser/signin/token_service_factory.h" |
| 70 #include "chrome/common/chrome_notification_types.h" | 69 #include "chrome/common/chrome_notification_types.h" |
| 71 #include "chrome/common/chrome_switches.h" | 70 #include "chrome/common/chrome_switches.h" |
| 72 #include "chrome/common/chrome_version_info.h" | 71 #include "chrome/common/chrome_version_info.h" |
| 73 #include "chrome/common/logging_chrome.h" | 72 #include "chrome/common/logging_chrome.h" |
| 74 #include "chrome/common/pref_names.h" | 73 #include "chrome/common/pref_names.h" |
| 74 #include "chromeos/cryptohome/async_method_caller.h" |
| 75 #include "chromeos/dbus/dbus_thread_manager.h" | 75 #include "chromeos/dbus/dbus_thread_manager.h" |
| 76 #include "chromeos/dbus/power_manager_client.h" | 76 #include "chromeos/dbus/power_manager_client.h" |
| 77 #include "chromeos/dbus/session_manager_client.h" | 77 #include "chromeos/dbus/session_manager_client.h" |
| 78 #include "content/public/browser/notification_service.h" | 78 #include "content/public/browser/notification_service.h" |
| 79 #include "content/public/common/main_function_params.h" | 79 #include "content/public/common/main_function_params.h" |
| 80 #include "grit/platform_locale_settings.h" | 80 #include "grit/platform_locale_settings.h" |
| 81 #include "net/base/network_change_notifier.h" | 81 #include "net/base/network_change_notifier.h" |
| 82 #include "net/url_request/url_request.h" | 82 #include "net/url_request/url_request.h" |
| 83 | 83 |
| 84 class MessageLoopObserver : public MessageLoopForUI::Observer { | 84 class MessageLoopObserver : public MessageLoopForUI::Observer { |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 LOG(WARNING) << "low_mem: Part of '100MB' experiment"; | 589 LOG(WARNING) << "low_mem: Part of '100MB' experiment"; |
| 590 chromeos::LowMemoryObserver::SetLowMemoryMargin(100); | 590 chromeos::LowMemoryObserver::SetLowMemoryMargin(100); |
| 591 } else if (trial->group() == margin_200mb) { | 591 } else if (trial->group() == margin_200mb) { |
| 592 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; | 592 LOG(WARNING) << "low_mem: Part of '200MB' experiment"; |
| 593 chromeos::LowMemoryObserver::SetLowMemoryMargin(200); | 593 chromeos::LowMemoryObserver::SetLowMemoryMargin(200); |
| 594 } else { | 594 } else { |
| 595 LOG(WARNING) << "low_mem: Part of 'default' experiment"; | 595 LOG(WARNING) << "low_mem: Part of 'default' experiment"; |
| 596 } | 596 } |
| 597 } | 597 } |
| 598 } | 598 } |
| OLD | NEW |