]> khamidou — GitHub mirrors - electron.git/commitdiff
Merge branch 'api_content_tracing_patch' of https://github.com/deepak1556/atom-shell...
authorCheng Zhao <zcbenz@gmail.com>
Thu, 23 Apr 2015 02:21:15 +0000 (10:21 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 23 Apr 2015 02:21:15 +0000 (10:21 +0800)
1  2 
atom/browser/api/atom_api_content_tracing.cc

index b5d9cb6c738e178725370c16d8a798718cc67e33,7ebca44f2cb285bc6d7602bcb6c5930fa0dc20c9..a3299e447a8f3e4efa161743b5e0e016339d59c3
@@@ -17,25 -17,11 +17,11 @@@ using content::TracingController
  
  namespace mate {
  
- template<typename T>
- struct Converter<std::set<T> > {
-   static v8::Handle<v8::Value> ToV8(v8::Isolate* isolate,
-                                     const std::set<T>& val) {
-     v8::Handle<v8::Array> result = v8::Array::New(
-         isolate, static_cast<int>(val.size()));
-     typename std::set<T>::const_iterator it;
-     int i;
-     for (i = 0, it = val.begin(); it != val.end(); ++it, ++i)
-       result->Set(i, Converter<T>::ToV8(isolate, *it));
-     return result;
-   }
- };
- 
  template<>
 -struct Converter<base::debug::CategoryFilter> {
 +struct Converter<base::trace_event::CategoryFilter> {
    static bool FromV8(v8::Isolate* isolate,
                       v8::Handle<v8::Value> val,
 -                     base::debug::CategoryFilter* out) {
 +                     base::trace_event::CategoryFilter* out) {
      std::string filter;
      if (!ConvertFromV8(isolate, val, &filter))
        return false;