OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <set> | 5 #include <set> |
6 | 6 |
7 #include "chrome/browser/profiles/profile_manager.h" | 7 #include "chrome/browser/profiles/profile_manager.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 } | 1034 } |
1035 } | 1035 } |
1036 | 1036 |
1037 void ProfileManager::RunCallbacks(const std::vector<CreateCallback>& callbacks, | 1037 void ProfileManager::RunCallbacks(const std::vector<CreateCallback>& callbacks, |
1038 Profile* profile, | 1038 Profile* profile, |
1039 Profile::CreateStatus status) { | 1039 Profile::CreateStatus status) { |
1040 for (size_t i = 0; i < callbacks.size(); ++i) | 1040 for (size_t i = 0; i < callbacks.size(); ++i) |
1041 callbacks[i].Run(profile, status); | 1041 callbacks[i].Run(profile, status); |
1042 } | 1042 } |
1043 | 1043 |
| 1044 ProfileManager::ProfileInfo::ProfileInfo(Profile* profile, bool created) |
| 1045 : profile(profile), |
| 1046 created(created) { |
| 1047 } |
| 1048 |
1044 ProfileManager::ProfileInfo::~ProfileInfo() { | 1049 ProfileManager::ProfileInfo::~ProfileInfo() { |
1045 ProfileDestroyer::DestroyProfileWhenAppropriate(profile.release()); | 1050 ProfileDestroyer::DestroyProfileWhenAppropriate(profile.release()); |
1046 } | 1051 } |
OLD | NEW |