OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "extensions/browser/test_runtime_api_delegate.h" |
| 6 |
| 7 namespace extensions { |
| 8 |
| 9 using core_api::runtime::GetPlatformInfo::Results::PlatformInfo; |
| 10 |
| 11 void TestRuntimeAPIDelegate::RegisterUpdateObserver(UpdateObserver* observer) { |
| 12 } |
| 13 |
| 14 void TestRuntimeAPIDelegate::UnregisterUpdateObserver( |
| 15 UpdateObserver* observer) { |
| 16 } |
| 17 |
| 18 base::Version TestRuntimeAPIDelegate::GetOldExtensionVersion( |
| 19 const Extension* extension) { |
| 20 return base::Version(); |
| 21 } |
| 22 |
| 23 void TestRuntimeAPIDelegate::MaybeReloadExtension( |
| 24 const std::string& extension_id) { |
| 25 } |
| 26 |
| 27 bool TestRuntimeAPIDelegate::RequestUpdateCheck( |
| 28 const std::string& extension_id, |
| 29 const RuntimeAPI::UpdateCheckCallback& callback) { |
| 30 return false; |
| 31 } |
| 32 |
| 33 void TestRuntimeAPIDelegate::HandleUninstall(const std::string& extension_id, |
| 34 const GURL& uninstall_url) { |
| 35 } |
| 36 |
| 37 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { |
| 38 info->os = PlatformInfo::OS_CROS_; |
| 39 return true; |
| 40 } |
| 41 |
| 42 bool TestRuntimeAPIDelegate::RequestRestart(std::string* error_message) { |
| 43 return false; |
| 44 } |
| 45 |
| 46 } // namespace extensions |
OLD | NEW |