[Smart Lock] Record a detailed UMA metric for each unlock attempt by Smart Lock users.
[chromium-blink-merge.git] / extensions / browser / test_runtime_api_delegate.cc
blob9394050dbcf16a08f4fc1af2f45eead67cd7653c
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.
5 #include "extensions/browser/test_runtime_api_delegate.h"
7 #include "extensions/common/api/runtime.h"
9 namespace extensions {
11 using core_api::runtime::PlatformInfo;
13 TestRuntimeAPIDelegate::TestRuntimeAPIDelegate() {
16 TestRuntimeAPIDelegate::~TestRuntimeAPIDelegate() {
19 void TestRuntimeAPIDelegate::AddUpdateObserver(UpdateObserver* observer) {
22 void TestRuntimeAPIDelegate::RemoveUpdateObserver(UpdateObserver* observer) {
25 base::Version TestRuntimeAPIDelegate::GetPreviousExtensionVersion(
26 const Extension* extension) {
27 return base::Version();
30 void TestRuntimeAPIDelegate::ReloadExtension(const std::string& extension_id) {
33 bool TestRuntimeAPIDelegate::CheckForUpdates(
34 const std::string& extension_id,
35 const UpdateCheckCallback& callback) {
36 return false;
39 void TestRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) {
42 bool TestRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) {
43 // TODO(rockot): This probably isn't right. Maybe this delegate should just
44 // support manual PlatformInfo override for tests if necessary.
45 info->os = PlatformInfo::OS_CROS_;
46 return true;
49 bool TestRuntimeAPIDelegate::RestartDevice(std::string* error_message) {
50 return false;
53 } // namespace extensions