refactor: replace remaining NULL
with nullptr
(#40053)
refactor: use nullptr everywhere
This commit is contained in:
parent
9d0e6d09f0
commit
04b2ba84cd
34 changed files with 98 additions and 93 deletions
|
@ -62,7 +62,7 @@ class ElectronExtensionMessageFilter : public content::BrowserMessageFilter {
|
|||
|
||||
// The BrowserContext associated with our renderer process. This should only
|
||||
// be accessed on the UI thread! Furthermore since this class is refcounted it
|
||||
// may outlive |browser_context_|, so make sure to NULL check if in doubt;
|
||||
// may outlive |browser_context_|, so make sure to nullptr check if in doubt;
|
||||
// async calls and the like.
|
||||
raw_ptr<content::BrowserContext> browser_context_;
|
||||
};
|
||||
|
|
|
@ -95,7 +95,8 @@ void ElectronExtensionSystem::InitForRegularProfile(bool extensions_enabled) {
|
|||
std::unique_ptr<base::Value::Dict> ParseManifest(
|
||||
base::StringPiece manifest_contents) {
|
||||
JSONStringValueDeserializer deserializer(manifest_contents);
|
||||
std::unique_ptr<base::Value> manifest = deserializer.Deserialize(NULL, NULL);
|
||||
std::unique_ptr<base::Value> manifest =
|
||||
deserializer.Deserialize(nullptr, nullptr);
|
||||
|
||||
if (!manifest.get() || !manifest->is_dict()) {
|
||||
LOG(ERROR) << "Failed to parse extension manifest.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue