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

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

Issue 99133022: GetDefaultProfile fixit for Chrome OS network & power settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/peripheral_battery_observer.cc
diff --git a/chrome/browser/chromeos/power/peripheral_battery_observer.cc b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
index dc0de7823492d28912256e7f80a143d5dfd958ea..69349080c34e4701c4f54e4303b125185d29af16 100644
--- a/chrome/browser/chromeos/power/peripheral_battery_observer.cc
+++ b/chrome/browser/chromeos/power/peripheral_battery_observer.cc
@@ -226,8 +226,9 @@ bool PeripheralBatteryObserver::PostNotification(const std::string& address,
UTF8ToUTF16(address),
new PeripheralBatteryNotificationDelegate(address));
- notification_manager->Add(notification,
- ProfileManager::GetDefaultProfileOrOffTheRecord());
+ notification_manager->Add(
+ notification,
+ ProfileManager::GetPrimaryUserProfileOrOffTheRecord());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698