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

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

Issue 24076002: Disallowing shelf changes via drag & drop if the enterprise profile does not allow changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
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_launcher_delegate.h" 5 #include "ash/test/test_launcher_delegate.h"
6 6
7 #include "ash/launcher/launcher_item_delegate_manager.h" 7 #include "ash/launcher/launcher_item_delegate_manager.h"
8 #include "ash/launcher/launcher_model.h" 8 #include "ash/launcher/launcher_model.h"
9 #include "ash/launcher/launcher_util.h" 9 #include "ash/launcher/launcher_util.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return 0; 142 return 0;
143 } 143 }
144 144
145 const std::string& TestLauncherDelegate::GetAppIDForLauncherID(LauncherID id) { 145 const std::string& TestLauncherDelegate::GetAppIDForLauncherID(LauncherID id) {
146 return EmptyString(); 146 return EmptyString();
147 } 147 }
148 148
149 void TestLauncherDelegate::PinAppWithID(const std::string& app_id) { 149 void TestLauncherDelegate::PinAppWithID(const std::string& app_id) {
150 } 150 }
151 151
152 bool TestLauncherDelegate::CanPin() const {
153 return true;
154 }
155
152 bool TestLauncherDelegate::IsAppPinned(const std::string& app_id) { 156 bool TestLauncherDelegate::IsAppPinned(const std::string& app_id) {
153 return false; 157 return false;
154 } 158 }
155 159
156 void TestLauncherDelegate::UnpinAppWithID(const std::string& app_id) { 160 void TestLauncherDelegate::UnpinAppWithID(const std::string& app_id) {
157 } 161 }
158 162
159 } // namespace test 163 } // namespace test
160 } // namespace ash 164 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698