| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "extensions/renderer/api_last_error.h" | 5 #include "extensions/renderer/bindings/api_last_error.h" |
| 6 | 6 |
| 7 #include "gin/converter.h" | 7 #include "gin/converter.h" |
| 8 #include "gin/handle.h" | 8 #include "gin/handle.h" |
| 9 #include "gin/object_template_builder.h" | 9 #include "gin/object_template_builder.h" |
| 10 #include "gin/wrappable.h" | 10 #include "gin/wrappable.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // Access through GetPrivate() so we don't trigger accessed(). | 240 // Access through GetPrivate() so we don't trigger accessed(). |
| 241 if (!parent->GetPrivate(context, key).ToLocal(&error)) | 241 if (!parent->GetPrivate(context, key).ToLocal(&error)) |
| 242 return false; | 242 return false; |
| 243 | 243 |
| 244 LastErrorObject* last_error = nullptr; | 244 LastErrorObject* last_error = nullptr; |
| 245 return gin::Converter<LastErrorObject*>::FromV8(context->GetIsolate(), error, | 245 return gin::Converter<LastErrorObject*>::FromV8(context->GetIsolate(), error, |
| 246 &last_error); | 246 &last_error); |
| 247 } | 247 } |
| 248 | 248 |
| 249 } // namespace extensions | 249 } // namespace extensions |
| OLD | NEW |