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

Unified Diff: chrome/browser/user_style_sheet_watcher.cc

Issue 24648002: Rename CallbackRegistry to CallbackList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Doc fix Created 7 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
« no previous file with comments | « chrome/browser/user_style_sheet_watcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/user_style_sheet_watcher.cc
diff --git a/chrome/browser/user_style_sheet_watcher.cc b/chrome/browser/user_style_sheet_watcher.cc
index f52a7058a8a79a023b40fd706d53aefb0d32db4b..075741253f3bec767c986f0d24fca23cad6f314a 100644
--- a/chrome/browser/user_style_sheet_watcher.cc
+++ b/chrome/browser/user_style_sheet_watcher.cc
@@ -57,7 +57,7 @@ class UserStyleSheetLoader
void LoadStyleSheet(const base::FilePath& style_sheet_file);
// Register a callback to be called whenever the stylesheet gets updated.
- scoped_ptr<base::CallbackRegistry<void(void)>::Subscription>
+ scoped_ptr<base::CallbackList<void(void)>::Subscription>
RegisterOnStyleSheetUpdatedCallback(const base::Closure& callback);
// Send out a notification if the stylesheet has already been loaded.
@@ -79,7 +79,7 @@ class UserStyleSheetLoader
// Whether the stylesheet has been loaded.
bool has_loaded_;
- base::CallbackRegistry<void(void)> style_sheet_updated_callbacks_;
+ base::CallbackList<void(void)> style_sheet_updated_callbacks_;
DISALLOW_COPY_AND_ASSIGN(UserStyleSheetLoader);
};
@@ -91,7 +91,7 @@ UserStyleSheetLoader::UserStyleSheetLoader()
UserStyleSheetLoader::~UserStyleSheetLoader() {
}
-scoped_ptr<base::CallbackRegistry<void(void)>::Subscription>
+scoped_ptr<base::CallbackList<void(void)>::Subscription>
UserStyleSheetLoader::RegisterOnStyleSheetUpdatedCallback(
const base::Closure& callback) {
return style_sheet_updated_callbacks_.Add(callback);
@@ -192,7 +192,7 @@ GURL UserStyleSheetWatcher::user_style_sheet() const {
return loader_->user_style_sheet();
}
-scoped_ptr<base::CallbackRegistry<void(void)>::Subscription>
+scoped_ptr<base::CallbackList<void(void)>::Subscription>
UserStyleSheetWatcher::RegisterOnStyleSheetUpdatedCallback(
const base::Closure& callback) {
return loader_->RegisterOnStyleSheetUpdatedCallback(callback);
« no previous file with comments | « chrome/browser/user_style_sheet_watcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698