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

Side by Side Diff: third_party/WebKit/Source/core/frame/ConsoleBase.cpp

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 { 211 {
212 RefPtrWillBeRawPtr<ScriptArguments> arguments = scriptArguments; 212 RefPtrWillBeRawPtr<ScriptArguments> arguments = scriptArguments;
213 if (!acceptNoArguments && (!arguments || !arguments->argumentCount())) 213 if (!acceptNoArguments && (!arguments || !arguments->argumentCount()))
214 return; 214 return;
215 215
216 if (scriptState && !scriptState->contextIsValid()) 216 if (scriptState && !scriptState->contextIsValid())
217 arguments.clear(); 217 arguments.clear();
218 String message; 218 String message;
219 if (arguments) 219 if (arguments)
220 arguments->getFirstArgumentAsString(message); 220 arguments->getFirstArgumentAsString(message);
221
221 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(C onsoleAPIMessageSource, level, message); 222 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(C onsoleAPIMessageSource, level, message);
222 consoleMessage->setType(type); 223 consoleMessage->setType(type);
223 consoleMessage->setScriptState(scriptState); 224 consoleMessage->setScriptState(scriptState);
224 consoleMessage->setScriptArguments(arguments); 225 consoleMessage->setScriptArguments(arguments);
225 consoleMessage->setCallStack(ScriptCallStack::captureForConsole()); 226 consoleMessage->setCallStack(ScriptCallStack::captureForConsole());
226 reportMessageToConsole(consoleMessage.release()); 227 reportMessageToConsole(consoleMessage.release());
227 } 228 }
228 229
229 } // namespace blink 230 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698