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

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: Removed added printf statements; LocalFrameId::is_valid() no longer checks if nonce is 0. Created 4 years, 2 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: 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 f5eac02bd1a8aa54adfc8627c64d35031c733f31..c2b4e1101f9eaf9d6125aea76ddc868ed461716e 100644
--- a/content/public/test/browser_test_utils.cc
+++ b/content/public/test/browser_test_utils.cc
@@ -1184,7 +1184,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