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

Side by Side Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 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) 2011 Google Inc. All rights reserved. 2 * Copyright (c) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 stackTrace ? stackTrace->clone() : nullptr, 0); 319 stackTrace ? stackTrace->clone() : nullptr, 0);
320 frame->console().reportMessageToClient(ConsoleAPIMessageSource, 320 frame->console().reportMessageToClient(ConsoleAPIMessageSource,
321 consoleAPITypeToMessageLevel(type), 321 consoleAPITypeToMessageLevel(type),
322 toCoreString(message), location.get()); 322 toCoreString(message), location.get());
323 } 323 }
324 324
325 v8::MaybeLocal<v8::Value> MainThreadDebugger::memoryInfo( 325 v8::MaybeLocal<v8::Value> MainThreadDebugger::memoryInfo(
326 v8::Isolate* isolate, 326 v8::Isolate* isolate,
327 v8::Local<v8::Context> context) { 327 v8::Local<v8::Context> context) {
328 ExecutionContext* executionContext = toExecutionContext(context); 328 ExecutionContext* executionContext = toExecutionContext(context);
329 ASSERT_UNUSED(executionContext, executionContext); 329 DCHECK(executionContext);
330 ASSERT(executionContext->isDocument()); 330 ASSERT(executionContext->isDocument());
331 return toV8(MemoryInfo::create(), context->Global(), isolate); 331 return toV8(MemoryInfo::create(), context->Global(), isolate);
332 } 332 }
333 333
334 void MainThreadDebugger::installAdditionalCommandLineAPI( 334 void MainThreadDebugger::installAdditionalCommandLineAPI(
335 v8::Local<v8::Context> context, 335 v8::Local<v8::Context> context,
336 v8::Local<v8::Object> object) { 336 v8::Local<v8::Object> object) {
337 ThreadDebugger::installAdditionalCommandLineAPI(context, object); 337 ThreadDebugger::installAdditionalCommandLineAPI(context, object);
338 createFunctionProperty( 338 createFunctionProperty(
339 context, object, "$", MainThreadDebugger::querySelectorCallback, 339 context, object, "$", MainThreadDebugger::querySelectorCallback,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 context, nodes, index++, 454 context, nodes, index++,
455 toV8(node, info.Holder(), info.GetIsolate())) 455 toV8(node, info.Holder(), info.GetIsolate()))
456 .FromMaybe(false)) 456 .FromMaybe(false))
457 return; 457 return;
458 } 458 }
459 info.GetReturnValue().Set(nodes); 459 info.GetReturnValue().Set(nodes);
460 } 460 }
461 } 461 }
462 462
463 } // namespace blink 463 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698