OLD | NEW |
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 "chrome/browser/extensions/chrome_extension_function.h" | 5 #include "chrome/browser/extensions/chrome_extension_function.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 9 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
8 #include "chrome/browser/extensions/window_controller.h" | 10 #include "chrome/browser/extensions/window_controller.h" |
9 #include "chrome/browser/extensions/window_controller_list.h" | 11 #include "chrome/browser/extensions/window_controller_list.h" |
10 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 14 #include "chrome/browser/ui/browser_finder.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
15 #include "content/public/browser/render_view_host.h" | 17 #include "content/public/browser/render_view_host.h" |
16 #include "extensions/browser/extension_function_dispatcher.h" | 18 #include "extensions/browser/extension_function_dispatcher.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 ChromeAsyncExtensionFunction* function) { | 111 ChromeAsyncExtensionFunction* function) { |
110 return false; | 112 return false; |
111 } | 113 } |
112 | 114 |
113 ChromeSyncExtensionFunction::ChromeSyncExtensionFunction() { | 115 ChromeSyncExtensionFunction::ChromeSyncExtensionFunction() { |
114 } | 116 } |
115 | 117 |
116 ChromeSyncExtensionFunction::~ChromeSyncExtensionFunction() {} | 118 ChromeSyncExtensionFunction::~ChromeSyncExtensionFunction() {} |
117 | 119 |
118 ExtensionFunction::ResponseAction ChromeSyncExtensionFunction::Run() { | 120 ExtensionFunction::ResponseAction ChromeSyncExtensionFunction::Run() { |
119 return RespondNow(RunSync() ? ArgumentList(results_.Pass()) : Error(error_)); | 121 return RespondNow(RunSync() ? ArgumentList(std::move(results_)) |
| 122 : Error(error_)); |
120 } | 123 } |
121 | 124 |
122 // static | 125 // static |
123 bool ChromeSyncExtensionFunction::ValidationFailure( | 126 bool ChromeSyncExtensionFunction::ValidationFailure( |
124 ChromeSyncExtensionFunction* function) { | 127 ChromeSyncExtensionFunction* function) { |
125 return false; | 128 return false; |
126 } | 129 } |
OLD | NEW |