Index: chrome/browser/automation/automation_provider_observers.cc |
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc |
index d1e434f9b2b9dc5d5eb3335f07fd6bc41ffd3dbd..095d08f819e0bb9eafbfa98b2b74b0e59b9f2b60 100644 |
--- a/chrome/browser/automation/automation_provider_observers.cc |
+++ b/chrome/browser/automation/automation_provider_observers.cc |
@@ -1979,8 +1979,10 @@ std::vector<DictionaryValue*>* GetAppInfoFromExtensions( |
ext != extensions->end(); ++ext) { |
// Only return information about extensions that are actually apps. |
if ((*ext)->is_app()) { |
- DictionaryValue* app_info = new DictionaryValue(); |
- AppLauncherHandler::CreateAppInfo(*ext, NULL, ext_service, app_info); |
+ DictionaryValue* app_info = |
+ AppLauncherHandler::CreateAppInfo(*ext, NULL, ext_service); |
+ if (!app_info) |
+ continue; |
app_info->SetBoolean("is_component_extension", |
(*ext)->location() == Extension::COMPONENT); |