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

Unified Diff: extensions/common/features/base_feature_provider.cc

Issue 2070283002: Use container::back() and container::pop_back(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/features/base_feature_provider.cc
diff --git a/extensions/common/features/base_feature_provider.cc b/extensions/common/features/base_feature_provider.cc
index 710a82749fa1f46a1abe601bfd150fdf0f1f9f9b..40065ff01fece213028bf1cc832ba13efb9bc8b4 100644
--- a/extensions/common/features/base_feature_provider.cc
+++ b/extensions/common/features/base_feature_provider.cc
@@ -180,7 +180,7 @@ std::vector<Feature*> BaseFeatureProvider::GetChildren(const Feature& parent)
const FeatureMap::const_iterator first_child = features_.lower_bound(prefix);
// All children have names before (parent.name() + ('.'+1)).
- ++prefix[prefix.size() - 1];
+ ++prefix.back();
const FeatureMap::const_iterator after_children =
features_.lower_bound(prefix);
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc ('k') | google_apis/drive/drive_api_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698