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

Side by Side Diff: extensions/shell/common/shell_extensions_client.cc

Issue 980353003: Extensions: Switch to new permission message system, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 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
« no previous file with comments | « extensions/extensions.gypi ('k') | extensions/test/test_permission_message_provider.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 2014 The Chromium Authors. All rights reserved. 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 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 "extensions/shell/common/shell_extensions_client.h" 5 #include "extensions/shell/common/shell_extensions_client.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "extensions/common/api/generated_schemas.h" 9 #include "extensions/common/api/generated_schemas.h"
10 #include "extensions/common/common_manifest_handlers.h" 10 #include "extensions/common/common_manifest_handlers.h"
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 // TODO(jamescook): Refactor ChromePermissionsMessageProvider so we can share 37 // TODO(jamescook): Refactor ChromePermissionsMessageProvider so we can share
38 // code. For now, this implementation does nothing. 38 // code. For now, this implementation does nothing.
39 class ShellPermissionMessageProvider : public PermissionMessageProvider { 39 class ShellPermissionMessageProvider : public PermissionMessageProvider {
40 public: 40 public:
41 ShellPermissionMessageProvider() {} 41 ShellPermissionMessageProvider() {}
42 ~ShellPermissionMessageProvider() override {} 42 ~ShellPermissionMessageProvider() override {}
43 43
44 // PermissionMessageProvider implementation. 44 // PermissionMessageProvider implementation.
45 PermissionMessageStrings GetPermissionMessageStrings(
46 const PermissionSet* permissions,
47 Manifest::Type extension_type) const override {
48 return PermissionMessageStrings();
49 }
50
51 PermissionMessageIDs GetLegacyPermissionMessageIDs( 45 PermissionMessageIDs GetLegacyPermissionMessageIDs(
52 const PermissionSet* permissions, 46 const PermissionSet* permissions,
53 Manifest::Type extension_type) const override { 47 Manifest::Type extension_type) const override {
54 return PermissionMessageIDs(); 48 return PermissionMessageIDs();
55 } 49 }
56 50
57 CoalescedPermissionMessages GetCoalescedPermissionMessages( 51 CoalescedPermissionMessages GetCoalescedPermissionMessages(
58 const PermissionIDSet& permissions) const override { 52 const PermissionIDSet& permissions) const override {
59 return CoalescedPermissionMessages(); 53 return CoalescedPermissionMessages();
60 } 54 }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 return extension_urls::kChromeWebstoreUpdateURL; 227 return extension_urls::kChromeWebstoreUpdateURL;
234 } 228 }
235 229
236 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { 230 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
237 // TODO(rockot): Maybe we want to do something else here. For now we accept 231 // TODO(rockot): Maybe we want to do something else here. For now we accept
238 // any URL as a blacklist URL because we don't really care. 232 // any URL as a blacklist URL because we don't really care.
239 return true; 233 return true;
240 } 234 }
241 235
242 } // namespace extensions 236 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/extensions.gypi ('k') | extensions/test/test_permission_message_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698