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

Unified Diff: cc/test/test_context_support.cc

Issue 2278283003: Refactor client visibility handling (Closed)
Patch Set: feedback Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/test/test_context_support.cc
diff --git a/cc/test/test_context_support.cc b/cc/test/test_context_support.cc
index 7a47780e4d56369ffc6519477a2c33ff643616f3..a6aa09ce38c664b7fcb5f7600e1bdce54b4a4606 100644
--- a/cc/test/test_context_support.cc
+++ b/cc/test/test_context_support.cc
@@ -91,18 +91,4 @@ uint64_t TestContextSupport::ShareGroupTracingGUID() const {
void TestContextSupport::SetErrorMessageCallback(
const base::Callback<void(const char*, int32_t)>& callback) {}
-void TestContextSupport::SetClientVisible(int client_id, bool is_visible) {
- if (is_visible) {
- visible_clients_.insert(client_id);
- } else {
- auto found = visible_clients_.find(client_id);
- if (found != visible_clients_.end())
- visible_clients_.erase(found);
- }
-}
-
-bool TestContextSupport::AnyClientsVisible() const {
- return !visible_clients_.empty();
-}
-
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698