Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: extensions/browser/api/api_resource.cc

Issue 182213005: Move api_resource{,manager} out of src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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
« no previous file with comments | « extensions/browser/api/api_resource.h ('k') | extensions/browser/api/api_resource_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/extensions/api/api_resource.h" 5 #include "extensions/browser/api/api_resource.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 ApiResource::ApiResource(const std::string& owner_extension_id) 9 ApiResource::ApiResource(const std::string& owner_extension_id)
10 : owner_extension_id_(owner_extension_id) { 10 : owner_extension_id_(owner_extension_id) {
11 11
12 CHECK(!owner_extension_id_.empty()); 12 CHECK(!owner_extension_id_.empty());
13 } 13 }
14 14
15 ApiResource::~ApiResource() { 15 ApiResource::~ApiResource() {}
16 }
17 16
18 bool ApiResource::IsPersistent() const { 17 bool ApiResource::IsPersistent() const {
19 return true; // backward-compatible behavior. 18 return true; // backward-compatible behavior.
20 } 19 }
21 20
22 } // namespace extensions 21 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/api_resource.h ('k') | extensions/browser/api/api_resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698