| 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
|
|
|