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

Unified Diff: chrome/installer/util/installer_state.cc

Issue 10669038: base: Remove dereference structure operator (i.e ->) from ScopedVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sessions/tab_restore_service.cc ('k') | content/browser/geolocation/location_arbitrator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/installer_state.cc
diff --git a/chrome/installer/util/installer_state.cc b/chrome/installer/util/installer_state.cc
index bbf3a33682b53dc47acfd2fcf5c040cd6ba1d8f9..24572be38f526e9795e1457b850ca6ee08f77cf2 100644
--- a/chrome/installer/util/installer_state.cc
+++ b/chrome/installer/util/installer_state.cc
@@ -285,7 +285,7 @@ Product* InstallerState::AddProductInDirectory(const FilePath* product_dir,
state_key_ = the_product.distribution()->GetStateKey();
products_.push_back(product->release());
- return products_[products_->size() - 1];
+ return products_[products_.size() - 1];
}
Product* InstallerState::AddProduct(scoped_ptr<Product>* product) {
@@ -350,7 +350,7 @@ bool InstallerState::RemoveProduct(const Product* product) {
ScopedVector<Product>::iterator it =
std::find(products_.begin(), products_.end(), product);
if (it != products_.end()) {
- products_->erase(it);
+ products_.weak_erase(it);
return true;
}
return false;
« no previous file with comments | « chrome/browser/sessions/tab_restore_service.cc ('k') | content/browser/geolocation/location_arbitrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698