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

Unified Diff: chrome/browser/chromeos/power/screen_lock_observer.cc

Issue 10911261: chromeos: Stop calling ProfileManager::GetDefaultProfile() from extension event dispatch functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added function comments Created 8 years, 3 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/chromeos/power/screen_lock_observer.cc
diff --git a/chrome/browser/chromeos/power/screen_lock_observer.cc b/chrome/browser/chromeos/power/screen_lock_observer.cc
index 419a4891529f42965aad58270ec3bce6d55a0e73..3a731814c826fd3e17bf6368c15dc361920710f6 100644
--- a/chrome/browser/chromeos/power/screen_lock_observer.cc
+++ b/chrome/browser/chromeos/power/screen_lock_observer.cc
@@ -9,7 +9,8 @@
namespace chromeos {
-ScreenLockObserver::ScreenLockObserver() {
+ScreenLockObserver::ScreenLockObserver(Profile* profile)
+ : profile_(profile) {
DBusThreadManager::Get()->GetSessionManagerClient()->AddObserver(this);
}
@@ -18,7 +19,7 @@ ScreenLockObserver::~ScreenLockObserver() {
}
void ScreenLockObserver::UnlockScreen() {
- extensions::DispatchScreenUnlockedEvent();
+ extensions::DispatchScreenUnlockedEvent(profile_);
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698