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

Unified Diff: content/browser/tracing/tracing_ui.cc

Issue 15714004: Use const_iterator while iterating const std::set<>& (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 87f2f9363168866d9ed392a637d8a7549b9226b9..d3de1e148ea53085b77efc26ffa84d86bce85c25 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -522,7 +522,7 @@ void TracingMessageHandler::OnKnownCategoriesCollected(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
scoped_ptr<base::ListValue> categories(new base::ListValue());
- for (std::set<std::string>::iterator iter = known_categories.begin();
+ for (std::set<std::string>::const_iterator iter = known_categories.begin();
iter != known_categories.end();
++iter) {
categories->AppendString(*iter);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698