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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 368133005: Fixes for re-enabling more MSVC level 4 warnings: chrome/browser/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comment Created 6 years, 5 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: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 3595b6adcaeae426710f50a2930605b523f1f9fc..b8e8b4c08c31ea3020db69b7b412e4ddbead61a0 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1589,8 +1589,9 @@ void ExtensionService::OnExtensionInstalled(
const std::string& id = extension->id();
bool initial_enable = ShouldEnableOnInstall(extension);
std::string install_parameter;
- const extensions::PendingExtensionInfo* pending_extension_info = NULL;
- if ((pending_extension_info = pending_extension_manager()->GetById(id))) {
+ const extensions::PendingExtensionInfo* pending_extension_info =
+ pending_extension_manager()->GetById(id);
+ if (pending_extension_info) {
if (!pending_extension_info->ShouldAllowInstall(extension)) {
pending_extension_manager()->Remove(id);

Powered by Google App Engine
This is Rietveld 408576698