Index: chrome/browser/profiles/profile_manager.cc |
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc |
index 135f8a514f82183c5cf5726fee1f4dc54a44768c..569e9375be782fc93508b24d598a7f85c8d1870c 100644 |
--- a/chrome/browser/profiles/profile_manager.cc |
+++ b/chrome/browser/profiles/profile_manager.cc |
@@ -10,6 +10,7 @@ |
#include "base/file_path.h" |
#include "base/file_util.h" |
#include "base/path_service.h" |
+#include "base/stl_util-inl.h" |
#include "base/string_number_conversions.h" |
#include "base/string_util.h" |
#include "base/utf_string_conversions.h" |
@@ -409,7 +410,7 @@ void ProfileManager::OnProfileCreated(Profile* profile, bool success) { |
observers_to_delete.push_back(observers[i]); |
} |
- observers_to_delete.clear(); |
+ STLDeleteElements(&observers_to_delete); |
} |
// static |