@@ -80,43 +80,43 @@ void InspectorBackendDispatcher::dispatch(const String& message)
8080
8181 RefPtr<InspectorValue> parsedMessage = InspectorValue::parseJSON (message);
8282 if (!parsedMessage) {
83- reportProtocolError (nullptr , ParseError, " Message must be in JSON format" );
83+ reportProtocolError (nullptr , ParseError, ASCIILiteral ( " Message must be in JSON format" ) );
8484 return ;
8585 }
8686
8787 RefPtr<InspectorObject> messageObject = parsedMessage->asObject ();
8888 if (!messageObject) {
89- reportProtocolError (nullptr , InvalidRequest, " Message must be a JSONified object" );
89+ reportProtocolError (nullptr , InvalidRequest, ASCIILiteral ( " Message must be a JSONified object" ) );
9090 return ;
9191 }
9292
9393 RefPtr<InspectorValue> callIdValue = messageObject->get (" id" );
9494 if (!callIdValue) {
95- reportProtocolError (nullptr , InvalidRequest, " 'id' property was not found" );
95+ reportProtocolError (nullptr , InvalidRequest, ASCIILiteral ( " 'id' property was not found" ) );
9696 return ;
9797 }
9898
9999 long callId = 0 ;
100100 if (!callIdValue->asNumber (&callId)) {
101- reportProtocolError (nullptr , InvalidRequest, " The type of 'id' property must be number" );
101+ reportProtocolError (nullptr , InvalidRequest, ASCIILiteral ( " The type of 'id' property must be number" ) );
102102 return ;
103103 }
104104
105105 RefPtr<InspectorValue> methodValue = messageObject->get (" method" );
106106 if (!methodValue) {
107- reportProtocolError (&callId, InvalidRequest, " 'method' property wasn't found" );
107+ reportProtocolError (&callId, InvalidRequest, ASCIILiteral ( " 'method' property wasn't found" ) );
108108 return ;
109109 }
110110
111111 String method;
112112 if (!methodValue->asString (&method)) {
113- reportProtocolError (&callId, InvalidRequest, " The type of 'method' property must be string" );
113+ reportProtocolError (&callId, InvalidRequest, ASCIILiteral ( " The type of 'method' property must be string" ) );
114114 return ;
115115 }
116116
117117 size_t position = method.find (' .' );
118118 if (position == WTF ::notFound) {
119- reportProtocolError (&callId, InvalidRequest, " The 'method' property was formatted incorrectly. It should be 'Domain.method'" );
119+ reportProtocolError (&callId, InvalidRequest, ASCIILiteral ( " The 'method' property was formatted incorrectly. It should be 'Domain.method'" ) );
120120 return ;
121121 }
122122
0 commit comments