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

Unified Diff: services/ui/public/cpp/window.cc

Issue 2425923003: Replaced is_null() with is_valid in SurfaceId and related classes. (Closed)
Patch Set: Fixed an exo compile error 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: services/ui/public/cpp/window.cc
diff --git a/services/ui/public/cpp/window.cc b/services/ui/public/cpp/window.cc
index 4368a2601a6915283920f80d4332922d429facc1..119d6e2fb96880ea092879365ace623c4f23eb94 100644
--- a/services/ui/public/cpp/window.cc
+++ b/services/ui/public/cpp/window.cc
@@ -812,7 +812,7 @@ void Window::LocalSetSurfaceId(std::unique_ptr<SurfaceInfo> surface_info) {
const cc::SurfaceId& existing_surface_id = surface_info_->surface_id;
cc::SurfaceId new_surface_id =
surface_info ? surface_info->surface_id : cc::SurfaceId();
- if (!existing_surface_id.is_null() &&
+ if (existing_surface_id.is_valid() &&
existing_surface_id != new_surface_id) {
// Return the existing surface sequence.
if (client_) {

Powered by Google App Engine
This is Rietveld 408576698