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

Unified Diff: third_party/WebKit/Source/wtf/AutoReset.h

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset Created 4 years, 5 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 | « third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp ('k') | third_party/WebKit/Source/wtf/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/AutoReset.h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAndroid.cpp b/third_party/WebKit/Source/wtf/AutoReset.h
similarity index 83%
copy from third_party/WebKit/Source/platform/scroll/ScrollbarThemeAndroid.cpp
copy to third_party/WebKit/Source/wtf/AutoReset.h
index e9b00bcfd0b237a0690a33d82015359e64c4fb6d..04e91b509ec3c6c4c6b488163d34772f8b814912 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollbarThemeAndroid.cpp
+++ b/third_party/WebKit/Source/wtf/AutoReset.h
@@ -23,15 +23,20 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "platform/scroll/ScrollbarTheme.h"
+#ifndef AutoReset_h
+#define AutoReset_h
-#include "platform/scroll/ScrollbarThemeOverlay.h"
+#include "base/auto_reset.h"
-namespace blink {
+namespace WTF {
-ScrollbarTheme& ScrollbarTheme::nativeTheme()
-{
- return ScrollbarThemeOverlay::mobileTheme();
-}
+// WTF::AutoReset is base::AutoReset. See base/auto_reset.h for documentation.
-} // namespace blink
+template <typename T>
+using AutoReset = base::AutoReset<T>;
+
+} // namespace WTF
+
+using WTF::AutoReset;
+
+#endif
« no previous file with comments | « third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp ('k') | third_party/WebKit/Source/wtf/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698