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

Side by Side Diff: chrome/browser/chromeos/system_logs/chrome_internal_log_source.cc

Issue 18308004: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/swap_metrics.cc ('k') | chrome/browser/nacl_host/nacl_host_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698