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

Unified Diff: ui/base/window_tracker_template.h

Issue 2230183002: ui: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 | « ui/base/win/hwnd_subclass.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/window_tracker_template.h
diff --git a/ui/base/window_tracker_template.h b/ui/base/window_tracker_template.h
index a22b4b78d839a9e92694f135a95101067ba5bf70..5bcaccb40bd4f325cd5814bfaa69fc0b2fc11c73 100644
--- a/ui/base/window_tracker_template.h
+++ b/ui/base/window_tracker_template.h
@@ -40,7 +40,7 @@ class WindowTrackerTemplate : public TObserver {
// Adds |window| to the set of Windows being tracked.
void Add(T* window) {
- if (ContainsValue(windows_, window))
+ if (base::ContainsValue(windows_, window))
return;
window->AddObserver(this);
@@ -65,7 +65,9 @@ class WindowTrackerTemplate : public TObserver {
// Returns true if |window| was previously added and has not been removed or
// deleted.
- bool Contains(T* window) const { return ContainsValue(windows_, window); }
+ bool Contains(T* window) const {
+ return base::ContainsValue(windows_, window);
+ }
// Observer overrides:
void OnWindowDestroying(T* window) override {
« no previous file with comments | « ui/base/win/hwnd_subclass.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698