OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |