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

Side by Side Diff: chrome/browser/chromeos/extensions/echo_private_api.cc

Issue 10694106: Added support for multiple parameters to Extension API callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/extensions/echo_private_api.h" 5 #include "chrome/browser/chromeos/extensions/echo_private_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 26 matching lines...) Expand all
37 37
38 GetRegistrationCodeFunction::GetRegistrationCodeFunction() { 38 GetRegistrationCodeFunction::GetRegistrationCodeFunction() {
39 } 39 }
40 40
41 GetRegistrationCodeFunction::~GetRegistrationCodeFunction() { 41 GetRegistrationCodeFunction::~GetRegistrationCodeFunction() {
42 } 42 }
43 43
44 bool GetRegistrationCodeFunction::RunImpl() { 44 bool GetRegistrationCodeFunction::RunImpl() {
45 std::string type; 45 std::string type;
46 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &type)); 46 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &type));
47 result_.reset(GetValueForRegistrationCodeType(type)); 47 SetResult(GetValueForRegistrationCodeType(type));
48 return true; 48 return true;
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698