Index: ash/test/test_shelf_delegate.cc |
diff --git a/ash/test/test_shelf_delegate.cc b/ash/test/test_shelf_delegate.cc |
index 71e9538f1757a9441763e6e41b6595e233803453..d173075cc0c4826890b6e89641d736f139f310a5 100644 |
--- a/ash/test/test_shelf_delegate.cc |
+++ b/ash/test/test_shelf_delegate.cc |
@@ -105,6 +105,16 @@ ShelfID TestShelfDelegate::GetShelfIDForAppID(const std::string& app_id) { |
return 0; |
} |
+ShelfID TestShelfDelegate::GetShelfIDForAppIDAndLaunchID( |
+ const std::string& app_id, |
+ const std::string& /* launch_id */) { |
+ for (auto const& iter : shelf_id_to_app_id_map_) { |
+ if (iter.second == app_id) |
+ return iter.first; |
+ } |
+ return 0; |
stevenjb
2016/08/30 16:12:51
Instead of copy/pasting identical code, just retur
Andra Paraschiv
2016/08/31 10:57:18
Done.
|
+} |
+ |
bool TestShelfDelegate::HasShelfIDToAppIDMapping(ShelfID id) const { |
return shelf_id_to_app_id_map_.find(id) != shelf_id_to_app_id_map_.end(); |
} |