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

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

Issue 8733004: Make ExtensionService use ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: + Created 9 years 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_toolbar_model.cc
diff --git a/chrome/browser/extensions/extension_toolbar_model.cc b/chrome/browser/extensions/extension_toolbar_model.cc
index 6f8c6956ccd5adb6da4a6196f97237520a30efda..24f96290eb282168fecbf3257c3e9d152508278d 100644
--- a/chrome/browser/extensions/extension_toolbar_model.cc
+++ b/chrome/browser/extensions/extension_toolbar_model.cc
@@ -181,8 +181,9 @@ void ExtensionToolbarModel::InitializeExtensionList() {
ExtensionList unsorted;
// Create the lists.
- for (size_t i = 0; i < service_->extensions()->size(); ++i) {
- const Extension* extension = service_->extensions()->at(i);
+ for (ExtensionSet::const_iterator it = service_->extensions()->begin();
+ it != service_->extensions()->end(); ++it) {
+ const Extension* extension = *it;
if (!extension->browser_action())
continue;
if (!service_->GetBrowserActionVisibility(extension))
« no previous file with comments | « chrome/browser/extensions/extension_tab_helper.cc ('k') | chrome/browser/extensions/extension_tts_engine_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698