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

Unified Diff: base/scoped_observer.h

Issue 11062004: Fix crash in a few of the tests in content_browsertests on Linux. The problem was that DesktopActiv… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: actually need to use test compositor on bots Created 8 years, 2 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 | « no previous file | ui/aura/desktop/desktop_activation_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/scoped_observer.h
===================================================================
--- base/scoped_observer.h (revision 159993)
+++ base/scoped_observer.h (working copy)
@@ -35,6 +35,14 @@
source->RemoveObserver(observer_);
}
+ bool IsObserving(Source* source) const {
+ for (size_t i = 0; i < sources_.size(); ++i) {
+ if (sources_[i] == source)
+ return true;
+ }
+ return false;
+ }
+
private:
Observer* observer_;
« no previous file with comments | « no previous file | ui/aura/desktop/desktop_activation_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698