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

Unified Diff: content/public/test/browser_test_utils.cc

Issue 2425923003: Replaced is_null() with is_valid in SurfaceId and related classes. (Closed)
Patch Set: Rebase 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: content/public/test/browser_test_utils.cc
diff --git a/content/public/test/browser_test_utils.cc b/content/public/test/browser_test_utils.cc
index d0d448b7bdc776932439f96be671cf88ed66e828..f60d8859e59839f2fc3235b7d957be0fcfd0b260 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -1152,7 +1152,7 @@ namespace {
bool ContainsSurfaceId(cc::SurfaceId container_surface_id,
RenderWidgetHostViewChildFrame* target_view) {
- if (container_surface_id.is_null())
+ if (!container_surface_id.is_valid())
return false;
for (cc::SurfaceId id :
GetSurfaceManager()->GetSurfaceForId(container_surface_id)

Powered by Google App Engine
This is Rietveld 408576698