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: extensions/browser/test_runtime_api_delegate.cc

Issue 264743014: Move chrome.runtime to //extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698