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

Unified Diff: gin/object_template_builder.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 | « chrome/browser/sync_file_system/drive_backend/callback_helper.h ('k') | gin/wrappable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/object_template_builder.h
diff --git a/gin/object_template_builder.h b/gin/object_template_builder.h
index 1e53d83a1511adf6f178d873cc6c886ed901db93..3cfd4a394b930592c5c04ffd85d589d5fe1a4f58 100644
--- a/gin/object_template_builder.h
+++ b/gin/object_template_builder.h
@@ -5,6 +5,8 @@
#ifndef GIN_OBJECT_TEMPLATE_BUILDER_H_
#define GIN_OBJECT_TEMPLATE_BUILDER_H_
+#include <type_traits>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/strings/string_piece.h"
@@ -52,9 +54,10 @@ struct CallbackTraits<base::Callback<T> > {
// specially because the first parameter for callbacks to MFP should typically
// come from the the JavaScript "this" object the function was called on, not
// from the first normal parameter.
-template<typename T>
-struct CallbackTraits<T, typename base::enable_if<
- base::is_member_function_pointer<T>::value>::type> {
+template <typename T>
+struct CallbackTraits<
+ T,
+ typename std::enable_if<base::is_member_function_pointer<T>::value>::type> {
static v8::Local<v8::FunctionTemplate> CreateTemplate(v8::Isolate* isolate,
T callback) {
return CreateFunctionTemplate(isolate, base::Bind(callback),
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/callback_helper.h ('k') | gin/wrappable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698