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

Side by Side Diff: mojo/public/cpp/bindings/lib/validation_errors.cc

Issue 472083003: Mojom cpp bindings: Enable non-nullable check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/public/cpp/bindings/lib/validation_errors.h" 5 #include "mojo/public/cpp/bindings/lib/validation_errors.h"
6 6
7 #include "mojo/public/cpp/environment/logging.h" 7 #include "mojo/public/cpp/environment/logging.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace internal { 10 namespace internal {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 g_serialization_warning_observer = this; 79 g_serialization_warning_observer = this;
80 } 80 }
81 81
82 SerializationWarningObserverForTesting:: 82 SerializationWarningObserverForTesting::
83 ~SerializationWarningObserverForTesting() { 83 ~SerializationWarningObserverForTesting() {
84 MOJO_DCHECK(g_serialization_warning_observer == this); 84 MOJO_DCHECK(g_serialization_warning_observer == this);
85 g_serialization_warning_observer = NULL; 85 g_serialization_warning_observer = NULL;
86 } 86 }
87 87
88 bool IsNonNullableValidationEnabled() { 88 bool IsNonNullableValidationEnabled() {
89 return g_validation_error_observer || g_serialization_warning_observer; 89 // TODO(yzshen): Remove this function and all call sites.
90 return true;
90 } 91 }
91 92
92 } // namespace internal 93 } // namespace internal
93 } // namespace mojo 94 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/apps/js/test/js_to_cpp.mojom ('k') | mojo/public/interfaces/bindings/tests/sample_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698