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

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

Issue 2089183003: mus: Introduce API for embedder to dispatch event to the embeded client. Base URL: https://chromium.googlesource.com/chromium/src.git@mus-parent-window-receives-child-event
Patch Set: Created 4 years, 6 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
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "mojo/public/cpp/bindings/message.h" 8 #include "mojo/public/cpp/bindings/message.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (description) { 71 if (description) {
72 LOG(ERROR) << "Invalid message: " << ValidationErrorToString(error) << " (" 72 LOG(ERROR) << "Invalid message: " << ValidationErrorToString(error) << " ("
73 << description << ")"; 73 << description << ")";
74 if (context->message()) { 74 if (context->message()) {
75 context->message()->NotifyBadMessage( 75 context->message()->NotifyBadMessage(
76 base::StringPrintf("Validation failed for %s [%s (%s)]", 76 base::StringPrintf("Validation failed for %s [%s (%s)]",
77 context->description().data(), 77 context->description().data(),
78 ValidationErrorToString(error), description)); 78 ValidationErrorToString(error), description));
79 } 79 }
80 } else { 80 } else {
81 LOG(ERROR) << "Invalid message: " << ValidationErrorToString(error); 81 NOTREACHED() << "Invalid message: " << ValidationErrorToString(error);
82 if (context->message()) { 82 if (context->message()) {
83 context->message()->NotifyBadMessage( 83 context->message()->NotifyBadMessage(
84 base::StringPrintf("Validation failed for %s [%s]", 84 base::StringPrintf("Validation failed for %s [%s]",
85 context->description().data(), 85 context->description().data(),
86 ValidationErrorToString(error))); 86 ValidationErrorToString(error)));
87 } 87 }
88 } 88 }
89 } 89 }
90 90
91 ValidationErrorObserverForTesting::ValidationErrorObserverForTesting( 91 ValidationErrorObserverForTesting::ValidationErrorObserverForTesting(
(...skipping 24 matching lines...) Expand all
116 } 116 }
117 117
118 SerializationWarningObserverForTesting:: 118 SerializationWarningObserverForTesting::
119 ~SerializationWarningObserverForTesting() { 119 ~SerializationWarningObserverForTesting() {
120 DCHECK(g_serialization_warning_observer == this); 120 DCHECK(g_serialization_warning_observer == this);
121 g_serialization_warning_observer = nullptr; 121 g_serialization_warning_observer = nullptr;
122 } 122 }
123 123
124 } // namespace internal 124 } // namespace internal
125 } // namespace mojo 125 } // namespace mojo
OLDNEW
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698