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

Unified Diff: chrome/browser/extensions/system/system_api.h

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/extensions/system/system_api.h
diff --git a/chrome/browser/extensions/system/system_api.h b/chrome/browser/extensions/system/system_api.h
index 5e26978d8aa8107d4d47752836e0c5b29a1b0560..1eb2de4a342d9b2aae7191dec1804b9e47dc8d79 100644
--- a/chrome/browser/extensions/system/system_api.h
+++ b/chrome/browser/extensions/system/system_api.h
@@ -35,10 +35,25 @@ class GetUpdateStatusFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
-void DispatchBrightnessChangedEvent(int brightness, bool user_initiated);
-void DispatchVolumeChangedEvent(double volume, bool is_volume_muted);
-void DispatchScreenUnlockedEvent();
-void DispatchWokeUpEvent();
+// Dispatches systemPrivate.onBrightnessChanged event for extensions.
+// |profile| is used to get extensions::EventRouter.
+void DispatchBrightnessChangedEvent(Profile* profile,
+ int brightness,
+ bool user_initiated);
+
+// Dispatches systemPrivate.onVolumeChanged event for extensions.
+// |profile| is used to get extensions::EventRouter.
+void DispatchVolumeChangedEvent(Profile* profile,
+ double volume,
+ bool is_volume_muted);
+
+// Dispatches systemPrivate.onScreenChanged event for extensions.
+// |profile| is used to get extensions::EventRouter.
+void DispatchScreenUnlockedEvent(Profile* profile);
+
+// Dispatches systemPrivate.onWokeUp event for extensions.
+// |profile| is used to get extensions::EventRouter.
+void DispatchWokeUpEvent(Profile* profile);
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698