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

Side by Side Diff: chrome/browser/extensions/mock_extension_special_storage_policy.cc

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Test beautification. Created 9 years, 5 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 (c) 2011 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 "chrome/browser/extensions/mock_extension_special_storage_policy.h"
6
7 MockExtensionSpecialStoragePolicy::MockExtensionSpecialStoragePolicy() {}
8 MockExtensionSpecialStoragePolicy::~MockExtensionSpecialStoragePolicy() {}
9
10 bool MockExtensionSpecialStoragePolicy::IsStorageProtected(const GURL& origin) {
11 return protected_.find(origin) != protected_.end();
12 }
13
14 bool MockExtensionSpecialStoragePolicy::IsStorageUnlimited(const GURL& origin) {
15 return unlimited_.find(origin) != unlimited_.end();
16 }
17
18 bool MockExtensionSpecialStoragePolicy::IsFileHandler(
19 const std::string& extension_id) {
20 return file_handlers_.find(extension_id) != file_handlers_.end();
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698