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

Side by Side Diff: chrome/browser/chromeos/login/user_manager_impl.cc

Issue 9664072: Removing WmIpc and related files from ChromeOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Copyright Created 8 years, 9 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
OLDNEW
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 "chrome/browser/chromeos/login/user_manager_impl.h" 5 #include "chrome/browser/chromeos/login/user_manager_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "chrome/common/chrome_paths.h" 50 #include "chrome/common/chrome_paths.h"
51 #include "chrome/common/chrome_switches.h" 51 #include "chrome/common/chrome_switches.h"
52 #include "chrome/common/net/gaia/google_service_auth_error.h" 52 #include "chrome/common/net/gaia/google_service_auth_error.h"
53 #include "content/public/browser/browser_thread.h" 53 #include "content/public/browser/browser_thread.h"
54 #include "content/public/browser/notification_service.h" 54 #include "content/public/browser/notification_service.h"
55 #include "content/public/common/url_constants.h" 55 #include "content/public/common/url_constants.h"
56 #include "crypto/nss_util.h" 56 #include "crypto/nss_util.h"
57 #include "third_party/skia/include/core/SkBitmap.h" 57 #include "third_party/skia/include/core/SkBitmap.h"
58 #include "ui/gfx/codec/png_codec.h" 58 #include "ui/gfx/codec/png_codec.h"
59 59
60 #if defined(TOOLKIT_USES_GTK)
61 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h"
62 #endif
63
64 using content::BrowserThread; 60 using content::BrowserThread;
65 61
66 typedef GoogleServiceAuthError AuthError; 62 typedef GoogleServiceAuthError AuthError;
67 63
68 namespace chromeos { 64 namespace chromeos {
69 65
70 namespace { 66 namespace {
71 67
72 // Incognito user is represented by an empty string (since some code already 68 // Incognito user is represented by an empty string (since some code already
73 // depends on that and it's hard to figure out what). 69 // depends on that and it's hard to figure out what).
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 kStubDefaultImageIndex); 857 kStubDefaultImageIndex);
862 } 858 }
863 859
864 void UserManagerImpl::NotifyOnLogin() { 860 void UserManagerImpl::NotifyOnLogin() {
865 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 861 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
866 content::NotificationService::current()->Notify( 862 content::NotificationService::current()->Notify(
867 chrome::NOTIFICATION_LOGIN_USER_CHANGED, 863 chrome::NOTIFICATION_LOGIN_USER_CHANGED,
868 content::Source<UserManagerImpl>(this), 864 content::Source<UserManagerImpl>(this),
869 content::Details<const User>(logged_in_user_)); 865 content::Details<const User>(logged_in_user_));
870 866
871 #if defined(TOOLKIT_USES_GTK)
872 // Let the window manager know that we're logged in now.
873 WmIpc::instance()->SetLoggedInProperty(true);
874 #endif
875
876 // Ensure we've opened the real user's key/certificate database. 867 // Ensure we've opened the real user's key/certificate database.
877 crypto::OpenPersistentNSSDB(); 868 crypto::OpenPersistentNSSDB();
878 869
879 // Only load the Opencryptoki library into NSS if we have this switch. 870 // Only load the Opencryptoki library into NSS if we have this switch.
880 // TODO(gspencer): Remove this switch once cryptohomed work is finished: 871 // TODO(gspencer): Remove this switch once cryptohomed work is finished:
881 // http://crosbug.com/12295 and http://crosbug.com/12304 872 // http://crosbug.com/12295 and http://crosbug.com/12304
882 if (CommandLine::ForCurrentProcess()->HasSwitch( 873 if (CommandLine::ForCurrentProcess()->HasSwitch(
883 switches::kLoadOpencryptoki)) { 874 switches::kLoadOpencryptoki)) {
884 crypto::EnableTPMTokenForNSS(new RealTPMTokenInfoDelegate()); 875 crypto::EnableTPMTokenForNSS(new RealTPMTokenInfoDelegate());
885 CertLibrary* cert_library; 876 CertLibrary* cert_library;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 BrowserThread::PostTask( 1202 BrowserThread::PostTask(
1212 BrowserThread::FILE, 1203 BrowserThread::FILE,
1213 FROM_HERE, 1204 FROM_HERE,
1214 base::Bind(&UserManagerImpl::DeleteUserImage, 1205 base::Bind(&UserManagerImpl::DeleteUserImage,
1215 base::Unretained(this), 1206 base::Unretained(this),
1216 image_path)); 1207 image_path));
1217 } 1208 }
1218 } 1209 }
1219 1210
1220 } // namespace chromeos 1211 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_browsertest.cc ('k') | chrome/browser/chromeos/login/username_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698