if (!value)
return;
- base::DictionaryValue* settings = NULL;
+ base::DictionaryValue* settings = nullptr;
value->GetAsDictionary(&settings);
if (!settings)
return;
}
void UnittestOnlyBenchmark::DidUpdateLayers(LayerTreeHost* host) {
- NotifyDone(scoped_ptr<base::Value>());
+ NotifyDone(nullptr);
}
bool UnittestOnlyBenchmark::ProcessMessage(scoped_ptr<base::Value> value) {
- base::DictionaryValue* message = NULL;
+ base::DictionaryValue* message = nullptr;
value->GetAsDictionary(&message);
bool can_handle;
if (message->HasKey("can_handle")) {
scoped_ptr<MicroBenchmarkImpl> UnittestOnlyBenchmark::CreateBenchmarkImpl(
scoped_refptr<base::MessageLoopProxy> origin_loop) {
if (!create_impl_benchmark_)
- return make_scoped_ptr<MicroBenchmarkImpl>(NULL);
+ return make_scoped_ptr<MicroBenchmarkImpl>(nullptr);
- return scoped_ptr<MicroBenchmarkImpl>(new UnittestOnlyBenchmarkImpl(
+ return make_scoped_ptr(new UnittestOnlyBenchmarkImpl(
origin_loop,
- NULL,
+ nullptr,
base::Bind(&UnittestOnlyBenchmark::RecordImplResults,
weak_ptr_factory_.GetWeakPtr())));
}