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

Side by Side Diff: gin/per_isolate_data.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gin/per_isolate_data.h" 5 #include "gin/per_isolate_data.h"
6 6
7 #include <utility>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
9 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
10 #include "gin/public/gin_embedders.h" 12 #include "gin/public/gin_embedders.h"
11 13
12 using v8::ArrayBuffer; 14 using v8::ArrayBuffer;
13 using v8::Eternal; 15 using v8::Eternal;
14 using v8::Isolate; 16 using v8::Isolate;
15 using v8::Local; 17 using v8::Local;
16 using v8::Object; 18 using v8::Object;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 WrappableBase* base) { 108 WrappableBase* base) {
107 NamedPropertyInterceptorMap::iterator it = named_interceptors_.find(base); 109 NamedPropertyInterceptorMap::iterator it = named_interceptors_.find(base);
108 if (it != named_interceptors_.end()) 110 if (it != named_interceptors_.end())
109 return it->second; 111 return it->second;
110 else 112 else
111 return NULL; 113 return NULL;
112 } 114 }
113 115
114 void PerIsolateData::EnableIdleTasks( 116 void PerIsolateData::EnableIdleTasks(
115 scoped_ptr<V8IdleTaskRunner> idle_task_runner) { 117 scoped_ptr<V8IdleTaskRunner> idle_task_runner) {
116 idle_task_runner_ = idle_task_runner.Pass(); 118 idle_task_runner_ = std::move(idle_task_runner);
117 } 119 }
118 120
119 } // namespace gin 121 } // namespace gin
OLDNEW
« no previous file with comments | « gin/modules/module_registry.cc ('k') | gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698