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

Side by Side Diff: extensions/browser/api/runtime/runtime_api.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, 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/browser/api/runtime/runtime_api.h" 5 #include "extensions/browser/api/runtime/runtime_api.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 bool RuntimeAPI::RestartDevice(std::string* error_message) { 272 bool RuntimeAPI::RestartDevice(std::string* error_message) {
273 return delegate_->RestartDevice(error_message); 273 return delegate_->RestartDevice(error_message);
274 } 274 }
275 275
276 /////////////////////////////////////////////////////////////////////////////// 276 ///////////////////////////////////////////////////////////////////////////////
277 277
278 // static 278 // static
279 void RuntimeEventRouter::DispatchOnStartupEvent( 279 void RuntimeEventRouter::DispatchOnStartupEvent(
280 content::BrowserContext* context, 280 content::BrowserContext* context,
281 const std::string& extension_id) { 281 const std::string& extension_id) {
282 DispatchOnStartupEventImpl(context, extension_id, true, NULL); 282 DispatchOnStartupEventImpl(context, extension_id, true, nullptr);
283 } 283 }
284 284
285 // static 285 // static
286 void RuntimeEventRouter::DispatchOnInstalledEvent( 286 void RuntimeEventRouter::DispatchOnInstalledEvent(
287 content::BrowserContext* context, 287 content::BrowserContext* context,
288 const std::string& extension_id, 288 const std::string& extension_id,
289 const Version& old_version, 289 const Version& old_version,
290 bool chrome_updated) { 290 bool chrome_updated) {
291 if (!ExtensionsBrowserClient::Get()->IsValidContext(context)) 291 if (!ExtensionsBrowserClient::Get()->IsValidContext(context))
292 return; 292 return;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 content::ChildProcessSecurityPolicy* policy = 511 content::ChildProcessSecurityPolicy* policy =
512 content::ChildProcessSecurityPolicy::GetInstance(); 512 content::ChildProcessSecurityPolicy::GetInstance();
513 policy->GrantReadFileSystem(renderer_id, filesystem_id); 513 policy->GrantReadFileSystem(renderer_id, filesystem_id);
514 base::DictionaryValue* dict = new base::DictionaryValue(); 514 base::DictionaryValue* dict = new base::DictionaryValue();
515 dict->SetString("fileSystemId", filesystem_id); 515 dict->SetString("fileSystemId", filesystem_id);
516 dict->SetString("baseName", relative_path); 516 dict->SetString("baseName", relative_path);
517 return RespondNow(OneArgument(dict)); 517 return RespondNow(OneArgument(dict));
518 } 518 }
519 519
520 } // namespace extensions 520 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698