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

Side by Side Diff: chrome/browser/chromeos/profiles/profile_helper.cc

Issue 15718003: Add SessionStateObserver with ActiveUserChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: close button when switching users, notify observers with ActiveUserChanged() when new user logs in Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/chromeos/profiles/profile_helper.h" 5 #include "chrome/browser/chromeos/profiles/profile_helper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/browsing_data/browsing_data_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_helper.h"
10 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 //////////////////////////////////////////////////////////////////////////////// 138 ////////////////////////////////////////////////////////////////////////////////
139 // ProfileHelper, UserManager::UserSessionStateObserver implementation: 139 // ProfileHelper, UserManager::UserSessionStateObserver implementation:
140 140
141 void ProfileHelper::ActiveUserHashChanged(const std::string& hash) { 141 void ProfileHelper::ActiveUserHashChanged(const std::string& hash) {
142 active_user_id_hash_ = hash; 142 active_user_id_hash_ = hash;
143 base::FilePath profile_path = GetProfilePathByUserIdHash(hash); 143 base::FilePath profile_path = GetProfilePathByUserIdHash(hash);
144 LOG(INFO) << "Switching to profile path: " << profile_path.value(); 144 LOG(INFO) << "Switching to profile path: " << profile_path.value();
145 } 145 }
146 146
147 void ProfileHelper::PendingUserSessionsRestoreFinished() {
148 }
149 147
bartfab (slow) 2013/06/03 09:00:06 Nit: Remove double blank line.
Nikita (slow) 2013/06/03 09:21:28 Done.
150 } // namespace chromeos 148 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698