| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/location_bar/location_bar_view.cc (revision 113231)
|
| +++ chrome/browser/ui/views/location_bar/location_bar_view.cc (working copy)
|
| @@ -925,9 +925,10 @@
|
| // Remember the previous visibility of the page actions so that we can
|
| // notify when this changes.
|
| std::vector<ExtensionAction*> page_actions;
|
| - for (size_t i = 0; i < service->extensions()->size(); ++i) {
|
| - if (service->extensions()->at(i)->page_action())
|
| - page_actions.push_back(service->extensions()->at(i)->page_action());
|
| + for (ExtensionSet::const_iterator it = service->extensions()->begin();
|
| + it != service->extensions()->end(); ++it) {
|
| + if ((*it)->page_action())
|
| + page_actions.push_back((*it)->page_action());
|
| }
|
|
|
| // On startup we sometimes haven't loaded any extensions. This makes sure
|
|
|