| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/system_logs/chrome_internal_log_source.h" | 5 #include "chrome/browser/chromeos/system_logs/chrome_internal_log_source.h" |
| 6 | 6 |
| 7 #include "base/json/json_string_value_serializer.h" | 7 #include "base/json/json_string_value_serializer.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/chromeos/settings/cros_settings.h" | 9 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 10 #include "chrome/browser/chromeos/system_logs/system_logs_fetcher.h" | 10 #include "chrome/browser/chromeos/system_logs/system_logs_fetcher.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 ExtensionService* service = | 87 ExtensionService* service = |
| 88 extensions::ExtensionSystem::Get(default_profile)->extension_service(); | 88 extensions::ExtensionSystem::Get(default_profile)->extension_service(); |
| 89 if (!service) | 89 if (!service) |
| 90 return; | 90 return; |
| 91 | 91 |
| 92 std::string extensions_list; | 92 std::string extensions_list; |
| 93 const ExtensionSet* extensions = service->extensions(); | 93 const ExtensionSet* extensions = service->extensions(); |
| 94 for (ExtensionSet::const_iterator it = extensions->begin(); | 94 for (ExtensionSet::const_iterator it = extensions->begin(); |
| 95 it != extensions->end(); | 95 it != extensions->end(); |
| 96 ++it) { | 96 ++it) { |
| 97 const extensions::Extension* extension = *it; | 97 const extensions::Extension* extension = it->get(); |
| 98 if (extensions_list.empty()) { | 98 if (extensions_list.empty()) { |
| 99 extensions_list = extension->name(); | 99 extensions_list = extension->name(); |
| 100 } else { | 100 } else { |
| 101 extensions_list += ", " + extension->name(); | 101 extensions_list += ", " + extension->name(); |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 if (!extensions_list.empty()) | 105 if (!extensions_list.empty()) |
| 106 (*response)[kExtensionsListKey] = extensions_list; | 106 (*response)[kExtensionsListKey] = extensions_list; |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace chromeos | 109 } // namespace chromeos |
| OLD | NEW |