| 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 "chrome/browser/extensions/window_controller.h" | 7 #include "chrome/browser/extensions/window_controller.h" |
| 8 #include "chrome/browser/extensions/window_controller_list.h" | 8 #include "chrome/browser/extensions/window_controller_list.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 ChromeAsyncExtensionFunction* function) { | 124 ChromeAsyncExtensionFunction* function) { |
| 125 return false; | 125 return false; |
| 126 } | 126 } |
| 127 | 127 |
| 128 ChromeSyncExtensionFunction::ChromeSyncExtensionFunction() { | 128 ChromeSyncExtensionFunction::ChromeSyncExtensionFunction() { |
| 129 } | 129 } |
| 130 | 130 |
| 131 ChromeSyncExtensionFunction::~ChromeSyncExtensionFunction() {} | 131 ChromeSyncExtensionFunction::~ChromeSyncExtensionFunction() {} |
| 132 | 132 |
| 133 ExtensionFunction::ResponseAction ChromeSyncExtensionFunction::Run() { | 133 ExtensionFunction::ResponseAction ChromeSyncExtensionFunction::Run() { |
| 134 return RespondNow(RunSync() ? MultipleArguments(results_.get()) | 134 return RespondNow(RunSync() ? ArgumentList(results_.Pass()) : Error(error_)); |
| 135 : Error(error_)); | |
| 136 } | 135 } |
| 137 | 136 |
| 138 // static | 137 // static |
| 139 bool ChromeSyncExtensionFunction::ValidationFailure( | 138 bool ChromeSyncExtensionFunction::ValidationFailure( |
| 140 ChromeSyncExtensionFunction* function) { | 139 ChromeSyncExtensionFunction* function) { |
| 141 return false; | 140 return false; |
| 142 } | 141 } |
| OLD | NEW |