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

Side by Side Diff: ash/test/test_shell_delegate.cc

Issue 1124153007: Added the Ash.Tab.TimeBetweenSwitchToExistingTabUserActions histogram to track time between tab swit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the branch that the diff was based on. Created 5 years, 7 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
OLDNEW
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/default_accessibility_delegate.h" 9 #include "ash/default_accessibility_delegate.h"
10 #include "ash/gpu_support_stub.h" 10 #include "ash/gpu_support_stub.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 ash::ShelfItemDelegate* item_delegate, 188 ash::ShelfItemDelegate* item_delegate,
189 ash::ShelfItem* item) { 189 ash::ShelfItem* item) {
190 return NULL; 190 return NULL;
191 } 191 }
192 192
193 GPUSupport* TestShellDelegate::CreateGPUSupport() { 193 GPUSupport* TestShellDelegate::CreateGPUSupport() {
194 // Real GPU support depends on src/content, so just use a stub. 194 // Real GPU support depends on src/content, so just use a stub.
195 return new GPUSupportStub; 195 return new GPUSupportStub;
196 } 196 }
197 197
198 UserMetricsRecorderProxy* TestShellDelegate::CreateUserMetricsRecorderProxy() {
199 return nullptr;
200 }
201
198 base::string16 TestShellDelegate::GetProductName() const { 202 base::string16 TestShellDelegate::GetProductName() const {
199 return base::string16(); 203 return base::string16();
200 } 204 }
201 205
202 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { 206 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) {
203 #if defined(OS_CHROMEOS) 207 #if defined(OS_CHROMEOS)
204 Shell* shell = Shell::GetInstance(); 208 Shell* shell = Shell::GetInstance();
205 static_cast<MediaDelegateImpl*>(shell->media_delegate()) 209 static_cast<MediaDelegateImpl*>(shell->media_delegate())
206 ->set_media_capture_state(state); 210 ->set_media_capture_state(state);
207 shell->system_tray_notifier()->NotifyMediaCaptureChanged(); 211 shell->system_tray_notifier()->NotifyMediaCaptureChanged();
208 #endif 212 #endif
209 } 213 }
210 214
211 } // namespace test 215 } // namespace test
212 } // namespace ash 216 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698