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

Side by Side Diff: chrome/browser/extensions/chrome_extension_function.cc

Issue 291453002: Make ExtensionFunction::ArgumentList (PKA MultipleArguments) take a scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reabse Created 6 years, 7 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 | Annotate | Revision Log
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 "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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | extensions/browser/api/runtime/runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698