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

Unified Diff: extensions/renderer/v8_schema_registry.cc

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: extensions/renderer/v8_schema_registry.cc
diff --git a/extensions/renderer/v8_schema_registry.cc b/extensions/renderer/v8_schema_registry.cc
index d2d5e0e90207e2b7fb58eb52b41b55fc94f6dc27..35c29518f5b75791ba8a583c22f4f94689b8b3d3 100644
--- a/extensions/renderer/v8_schema_registry.cc
+++ b/extensions/renderer/v8_schema_registry.cc
@@ -50,10 +50,10 @@ V8SchemaRegistry::~V8SchemaRegistry() {
scoped_ptr<NativeHandler> V8SchemaRegistry::AsNativeHandler() {
scoped_ptr<ScriptContext> context(
new ScriptContext(GetOrCreateContext(v8::Isolate::GetCurrent()),
- NULL, // no frame
- NULL, // no extension
+ nullptr, // no frame
+ nullptr, // no extension
Feature::UNSPECIFIED_CONTEXT,
- NULL, // no effective extension
+ nullptr, // no effective extension
Feature::UNSPECIFIED_CONTEXT));
return scoped_ptr<NativeHandler>(
new SchemaRegistryNativeHandler(this, context.Pass()));
@@ -76,7 +76,7 @@ v8::Handle<v8::Array> V8SchemaRegistry::GetSchemas(
}
v8::Handle<v8::Object> V8SchemaRegistry::GetSchema(const std::string& api) {
- if (schema_cache_ != NULL) {
+ if (schema_cache_ != nullptr) {
v8::Local<v8::Object> cached_schema = schema_cache_->Get(api);
if (!cached_schema.IsEmpty()) {
return cached_schema;

Powered by Google App Engine
This is Rietveld 408576698