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

Side by Side Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 221363002: Revert of Don't handle NaturalScroll in Chrome but pass it to CMT instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_display_host_impl.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "chrome/browser/chromeos/power/idle_action_warning_observer.h" 58 #include "chrome/browser/chromeos/power/idle_action_warning_observer.h"
59 #include "chrome/browser/chromeos/power/peripheral_battery_observer.h" 59 #include "chrome/browser/chromeos/power/peripheral_battery_observer.h"
60 #include "chrome/browser/chromeos/power/power_button_observer.h" 60 #include "chrome/browser/chromeos/power/power_button_observer.h"
61 #include "chrome/browser/chromeos/power/power_data_collector.h" 61 #include "chrome/browser/chromeos/power/power_data_collector.h"
62 #include "chrome/browser/chromeos/power/power_prefs.h" 62 #include "chrome/browser/chromeos/power/power_prefs.h"
63 #include "chrome/browser/chromeos/profiles/profile_helper.h" 63 #include "chrome/browser/chromeos/profiles/profile_helper.h"
64 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h " 64 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h "
65 #include "chrome/browser/chromeos/settings/device_settings_service.h" 65 #include "chrome/browser/chromeos/settings/device_settings_service.h"
66 #include "chrome/browser/chromeos/settings/owner_key_util.h" 66 #include "chrome/browser/chromeos/settings/owner_key_util.h"
67 #include "chrome/browser/chromeos/status/data_promo_notification.h" 67 #include "chrome/browser/chromeos/status/data_promo_notification.h"
68 #include "chrome/browser/chromeos/system/input_device_settings.h"
69 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h" 68 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h"
70 #include "chrome/browser/defaults.h" 69 #include "chrome/browser/defaults.h"
71 #include "chrome/browser/metrics/metrics_service.h" 70 #include "chrome/browser/metrics/metrics_service.h"
72 #include "chrome/browser/net/chrome_network_delegate.h" 71 #include "chrome/browser/net/chrome_network_delegate.h"
73 #include "chrome/browser/profiles/profile.h" 72 #include "chrome/browser/profiles/profile.h"
74 #include "chrome/browser/profiles/profile_manager.h" 73 #include "chrome/browser/profiles/profile_manager.h"
75 #include "chrome/browser/rlz/rlz.h" 74 #include "chrome/browser/rlz/rlz.h"
76 #include "chrome/common/chrome_constants.h" 75 #include "chrome/common/chrome_constants.h"
77 #include "chrome/common/chrome_paths.h" 76 #include "chrome/common/chrome_paths.h"
78 #include "chrome/common/chrome_switches.h" 77 #include "chrome/common/chrome_switches.h"
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 // -- immediately after ChildProcess::WaitForDebugger(). 707 // -- immediately after ChildProcess::WaitForDebugger().
709 708
710 // Start the out-of-memory priority manager here so that we give the most 709 // Start the out-of-memory priority manager here so that we give the most
711 // amount of time for the other services to start up before we start 710 // amount of time for the other services to start up before we start
712 // adjusting the oom priority. 711 // adjusting the oom priority.
713 g_browser_process->platform_part()->oom_priority_manager()->Start(); 712 g_browser_process->platform_part()->oom_priority_manager()->Start();
714 713
715 if (ui::ShouldDefaultToNaturalScroll()) { 714 if (ui::ShouldDefaultToNaturalScroll()) {
716 CommandLine::ForCurrentProcess()->AppendSwitch( 715 CommandLine::ForCurrentProcess()->AppendSwitch(
717 chromeos::switches::kNaturalScrollDefault); 716 chromeos::switches::kNaturalScrollDefault);
718 system::InputDeviceSettings::Get()->SetTapToClick(true); 717 ui::SetNaturalScroll(true);
719 } 718 }
720 719
721 ChromeBrowserMainPartsLinux::PreBrowserStart(); 720 ChromeBrowserMainPartsLinux::PreBrowserStart();
722 } 721 }
723 722
724 void ChromeBrowserMainPartsChromeos::PostBrowserStart() { 723 void ChromeBrowserMainPartsChromeos::PostBrowserStart() {
725 // These are dependent on the ash::Shell singleton already having been 724 // These are dependent on the ash::Shell singleton already having been
726 // initialized. 725 // initialized.
727 power_button_observer_.reset(new PowerButtonObserver); 726 power_button_observer_.reset(new PowerButtonObserver);
728 data_promo_notification_.reset(new DataPromoNotification()), 727 data_promo_notification_.reset(new DataPromoNotification()),
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 // Destroy DBus services immediately after threads are stopped. 830 // Destroy DBus services immediately after threads are stopped.
832 dbus_services_.reset(); 831 dbus_services_.reset();
833 832
834 ChromeBrowserMainPartsLinux::PostDestroyThreads(); 833 ChromeBrowserMainPartsLinux::PostDestroyThreads();
835 834
836 // Destroy DeviceSettingsService after g_browser_process. 835 // Destroy DeviceSettingsService after g_browser_process.
837 DeviceSettingsService::Shutdown(); 836 DeviceSettingsService::Shutdown();
838 } 837 }
839 838
840 } // namespace chromeos 839 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_display_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698