| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/ash/system_tray_delegate_chromeos.h" | 5 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void BluetoothSetDiscoveringError() { | 166 void BluetoothSetDiscoveringError() { |
| 167 LOG(ERROR) << "BluetoothSetDiscovering failed."; | 167 LOG(ERROR) << "BluetoothSetDiscovering failed."; |
| 168 } | 168 } |
| 169 | 169 |
| 170 void BluetoothDeviceConnectError( | 170 void BluetoothDeviceConnectError( |
| 171 device::BluetoothDevice::ConnectErrorCode error_code) { | 171 device::BluetoothDevice::ConnectErrorCode error_code) { |
| 172 } | 172 } |
| 173 | 173 |
| 174 std::unique_ptr<ash::CastConfigDelegate> CreateCastConfigDelegate() { | 174 std::unique_ptr<ash::CastConfigDelegate> CreateCastConfigDelegate() { |
| 175 if (CastConfigDelegateMediaRouter::IsEnabled()) | 175 if (CastConfigDelegateMediaRouter::IsEnabled()) |
| 176 return base::WrapUnique(new CastConfigDelegateMediaRouter()); | 176 return base::MakeUnique<CastConfigDelegateMediaRouter>(); |
| 177 return base::WrapUnique(new CastConfigDelegateChromeos()); | 177 return base::MakeUnique<CastConfigDelegateChromeos>(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void ShowSettingsSubPageForActiveUser(const std::string& sub_page) { | 180 void ShowSettingsSubPageForActiveUser(const std::string& sub_page) { |
| 181 chrome::ShowSettingsSubPageForProfile( | 181 chrome::ShowSettingsSubPageForProfile( |
| 182 ProfileManager::GetActiveUserProfile(), sub_page); | 182 ProfileManager::GetActiveUserProfile(), sub_page); |
| 183 } | 183 } |
| 184 | 184 |
| 185 void OnAcceptMultiprofilesIntro(bool no_show_again) { | 185 void OnAcceptMultiprofilesIntro(bool no_show_again) { |
| 186 PrefService* prefs = ProfileManager::GetActiveUserProfile()->GetPrefs(); | 186 PrefService* prefs = ProfileManager::GetActiveUserProfile()->GetPrefs(); |
| 187 prefs->SetBoolean(prefs::kMultiProfileNeverShowIntro, no_show_again); | 187 prefs->SetBoolean(prefs::kMultiProfileNeverShowIntro, no_show_again); |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " | 1340 LOG(WARNING) << "SystemTrayDelegateChromeOS::GetChildUserMessage call while " |
| 1341 << "ENABLE_SUPERVISED_USERS undefined."; | 1341 << "ENABLE_SUPERVISED_USERS undefined."; |
| 1342 return base::string16(); | 1342 return base::string16(); |
| 1343 } | 1343 } |
| 1344 | 1344 |
| 1345 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { | 1345 ash::SystemTrayDelegate* CreateSystemTrayDelegate() { |
| 1346 return new SystemTrayDelegateChromeOS(); | 1346 return new SystemTrayDelegateChromeOS(); |
| 1347 } | 1347 } |
| 1348 | 1348 |
| 1349 } // namespace chromeos | 1349 } // namespace chromeos |
| OLD | NEW |