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

Unified Diff: chrome/browser/sync_file_system/drive_backend/callback_helper.h

Issue 1475233002: Remove base::enable_if (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « base/template_util.h ('k') | gin/object_template_builder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/callback_helper.h
diff --git a/chrome/browser/sync_file_system/drive_backend/callback_helper.h b/chrome/browser/sync_file_system/drive_backend/callback_helper.h
index 8d524d477642aef79caa646d395d231bb8e4e782..d976accdfb305c66f66a9dab9a907f2d9e611a0e 100644
--- a/chrome/browser/sync_file_system/drive_backend/callback_helper.h
+++ b/chrome/browser/sync_file_system/drive_backend/callback_helper.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_
#define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_CALLBACK_HELPER_H_
+#include <type_traits>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
@@ -19,17 +21,14 @@ namespace drive_backend {
namespace internal {
template <typename T>
-typename base::enable_if<
- base::internal::IsMoveOnlyType<T>::value,
- base::internal::PassedWrapper<T> >::type
+typename std::enable_if<base::internal::IsMoveOnlyType<T>::value,
+ base::internal::PassedWrapper<T>>::type
RebindForward(T& t) {
return base::Passed(&t);
}
template <typename T>
-typename base::enable_if<
- !base::internal::IsMoveOnlyType<T>::value,
- T&>::type
+typename std::enable_if<!base::internal::IsMoveOnlyType<T>::value, T&>::type
RebindForward(T& t) {
return t;
}
« no previous file with comments | « base/template_util.h ('k') | gin/object_template_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698