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

Unified Diff: chrome/browser/chromeos/cros_settings_provider.cc

Issue 9289017: Apply individual policies for the various parts of device status reports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Julian's comments. Created 8 years, 11 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/cros_settings_provider.cc
diff --git a/chrome/browser/chromeos/cros_settings_provider.cc b/chrome/browser/chromeos/cros_settings_provider.cc
index ca6fa8d01b3947b4b7fc320e3d65591185048e62..11f3e860f34ef667b4aa939b8fb52abe235e457d 100644
--- a/chrome/browser/chromeos/cros_settings_provider.cc
+++ b/chrome/browser/chromeos/cros_settings_provider.cc
@@ -34,7 +34,13 @@ void CrosSettingsProvider::Set(const std::string& path,
}
void CrosSettingsProvider::NotifyObservers(const std::string& path) {
- notify_cb_.Run(path);
+ if (!notify_cb_.is_null())
+ notify_cb_.Run(path);
+}
+
+void CrosSettingsProvider::SetNotifyObserversCallback(
+ const NotifyObserversCallback& notify_cb) {
+ notify_cb_ = notify_cb;
}
}; // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/cros_settings_provider.h ('k') | chrome/browser/chromeos/device_settings_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698