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

Unified Diff: extensions/browser/api/system_display/system_display_apitest.cc

Issue 2489873002: Change GetAllDisplays() in all screens to return a const vector&. (Closed)
Patch Set: comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/system_display/system_display_apitest.cc
diff --git a/extensions/browser/api/system_display/system_display_apitest.cc b/extensions/browser/api/system_display/system_display_apitest.cc
index deeb22946080ade2963ecb95004e99156f332142..36943530e17b344622544ed17827c4193e2ae1c3 100644
--- a/extensions/browser/api/system_display/system_display_apitest.cc
+++ b/extensions/browser/api/system_display/system_display_apitest.cc
@@ -47,7 +47,7 @@ class MockScreen : public Screen {
int GetNumDisplays() const override {
return static_cast<int>(displays_.size());
}
- std::vector<display::Display> GetAllDisplays() const override {
+ const std::vector<display::Display>& GetAllDisplays() const override {
return displays_;
}
display::Display GetDisplayNearestWindow(

Powered by Google App Engine
This is Rietveld 408576698