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

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

Issue 7346024: Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
Index: chrome/browser/profiles/profile_manager.cc
===================================================================
--- chrome/browser/profiles/profile_manager.cc (revision 92309)
+++ chrome/browser/profiles/profile_manager.cc (working copy)
@@ -213,24 +213,6 @@
return GetProfile(default_profile_dir);
}
-Profile* ProfileManager::GetProfileWithId(ProfileId profile_id) {
- DCHECK_NE(Profile::kInvalidProfileId, profile_id);
- for (ProfilesInfoMap::iterator iter = profiles_info_.begin();
- iter != profiles_info_.end(); ++iter) {
- if (iter->second->created) {
- Profile* candidate = iter->second->profile.get();
- if (candidate->GetRuntimeId() == profile_id)
- return candidate;
- if (candidate->HasOffTheRecordProfile()) {
- candidate = candidate->GetOffTheRecordProfile();
- if (candidate->GetRuntimeId() == profile_id)
- return candidate;
- }
- }
- }
- return NULL;
-}
-
bool ProfileManager::IsValidProfile(Profile* profile) {
for (ProfilesInfoMap::iterator iter = profiles_info_.begin();
iter != profiles_info_.end(); ++iter) {
« no previous file with comments | « chrome/browser/profiles/profile_manager.h ('k') | chrome/browser/renderer_host/chrome_render_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698