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

Unified Diff: chrome/browser/profiles/profile_manager.cc

Issue 7328021: Multi-Profiles: Pass profile directories by reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix error Created 9 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
« 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: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index cc3647cb380fb3657554d71cfadb0f76335210fe..f0f5f44b6ae23158cde92afc31c474bd641baf76 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -43,9 +43,9 @@
namespace {
-void DeleteProfileDirectories(std::vector<FilePath> paths) {
+void DeleteProfileDirectories(const std::vector<FilePath>& paths) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
- for (std::vector<FilePath>::iterator it = paths.begin();
+ for (std::vector<FilePath>::const_iterator it = paths.begin();
it != paths.end(); ++it) {
file_util::Delete(*it, true);
}
« 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