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 "ash/test/test_shell_delegate.h" | 5 #include "ash/test/test_shell_delegate.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "ash/app_list/app_list_presenter_delegate.h" | 9 #include "ash/app_list/app_list_presenter_delegate.h" |
10 #include "ash/app_list/app_list_presenter_delegate_factory.h" | 10 #include "ash/app_list/app_list_presenter_delegate_factory.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 force_maximize_on_first_run_(false), | 109 force_maximize_on_first_run_(false), |
110 app_list_presenter_delegate_factory_(new AppListPresenterDelegateFactory( | 110 app_list_presenter_delegate_factory_(new AppListPresenterDelegateFactory( |
111 base::WrapUnique(new AppListViewDelegateFactoryImpl))) {} | 111 base::WrapUnique(new AppListViewDelegateFactoryImpl))) {} |
112 | 112 |
113 TestShellDelegate::~TestShellDelegate() {} | 113 TestShellDelegate::~TestShellDelegate() {} |
114 | 114 |
115 ::service_manager::Connector* TestShellDelegate::GetShellConnector() const { | 115 ::service_manager::Connector* TestShellDelegate::GetShellConnector() const { |
116 return nullptr; | 116 return nullptr; |
117 } | 117 } |
118 | 118 |
119 bool TestShellDelegate::IsFirstRunAfterBoot() const { | |
120 return false; | |
121 } | |
122 | |
123 bool TestShellDelegate::IsIncognitoAllowed() const { | 119 bool TestShellDelegate::IsIncognitoAllowed() const { |
124 return true; | 120 return true; |
125 } | 121 } |
126 | 122 |
127 bool TestShellDelegate::IsMultiProfilesEnabled() const { | 123 bool TestShellDelegate::IsMultiProfilesEnabled() const { |
128 return multi_profiles_enabled_; | 124 return multi_profiles_enabled_; |
129 } | 125 } |
130 | 126 |
131 bool TestShellDelegate::IsRunningInForcedAppMode() const { | 127 bool TestShellDelegate::IsRunningInForcedAppMode() const { |
132 return false; | 128 return false; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { | 212 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { |
217 #if defined(OS_CHROMEOS) | 213 #if defined(OS_CHROMEOS) |
218 static_cast<MediaDelegateImpl*>(WmShell::Get()->media_delegate()) | 214 static_cast<MediaDelegateImpl*>(WmShell::Get()->media_delegate()) |
219 ->set_media_capture_state(state); | 215 ->set_media_capture_state(state); |
220 WmShell::Get()->system_tray_notifier()->NotifyMediaCaptureChanged(); | 216 WmShell::Get()->system_tray_notifier()->NotifyMediaCaptureChanged(); |
221 #endif | 217 #endif |
222 } | 218 } |
223 | 219 |
224 } // namespace test | 220 } // namespace test |
225 } // namespace ash | 221 } // namespace ash |
OLD | NEW |