| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/test_runtime_api_delegate.h" | 5 #include "extensions/browser/test_runtime_api_delegate.h" |
| 6 | 6 |
| 7 #include "extensions/common/api/runtime.h" | 7 #include "extensions/common/api/runtime.h" |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 const UpdateCheckCallback& callback) { | 35 const UpdateCheckCallback& callback) { |
| 36 return false; | 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 void TestRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) { | 39 void TestRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) { |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { | 42 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { |
| 43 // TODO(rockot): This probably isn't right. Maybe this delegate should just | 43 // TODO(rockot): This probably isn't right. Maybe this delegate should just |
| 44 // support manual PlatformInfo override for tests if necessary. | 44 // support manual PlatformInfo override for tests if necessary. |
| 45 info->os = PlatformInfo::OS_CROS_; | 45 info->os = core_api::runtime::PLATFORM_INFO_OS_CROS; |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool TestRuntimeAPIDelegate::RestartDevice(std::string* error_message) { | 49 bool TestRuntimeAPIDelegate::RestartDevice(std::string* error_message) { |
| 50 return false; | 50 return false; |
| 51 } | 51 } |
| 52 | 52 |
| 53 } // namespace extensions | 53 } // namespace extensions |
| OLD | NEW |