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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 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/shell/browser/shell_extension_host_delegate.cc ('k') | gin/public/v8_platform.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 <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PermissionIDSet GetAllPermissionIDs( 57 PermissionIDSet GetAllPermissionIDs(
58 const PermissionSet& permissions, 58 const PermissionSet& permissions,
59 Manifest::Type extension_type) const override { 59 Manifest::Type extension_type) const override {
60 return PermissionIDSet(); 60 return PermissionIDSet();
61 } 61 }
62 62
63 private: 63 private:
64 DISALLOW_COPY_AND_ASSIGN(ShellPermissionMessageProvider); 64 DISALLOW_COPY_AND_ASSIGN(ShellPermissionMessageProvider);
65 }; 65 };
66 66
67 base::LazyInstance<ShellPermissionMessageProvider> 67 base::LazyInstance<ShellPermissionMessageProvider>::DestructorAtExit
68 g_permission_message_provider = LAZY_INSTANCE_INITIALIZER; 68 g_permission_message_provider = LAZY_INSTANCE_INITIALIZER;
69 69
70 } // namespace 70 } // namespace
71 71
72 ShellExtensionsClient::ShellExtensionsClient() 72 ShellExtensionsClient::ShellExtensionsClient()
73 : extensions_api_permissions_(ExtensionsAPIPermissions()), 73 : extensions_api_permissions_(ExtensionsAPIPermissions()),
74 webstore_base_url_(extension_urls::kChromeWebstoreBaseURL), 74 webstore_base_url_(extension_urls::kChromeWebstoreBaseURL),
75 webstore_update_url_(extension_urls::kChromeWebstoreUpdateURL) {} 75 webstore_update_url_(extension_urls::kChromeWebstoreUpdateURL) {}
76 76
77 ShellExtensionsClient::~ShellExtensionsClient() { 77 ShellExtensionsClient::~ShellExtensionsClient() {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return webstore_update_url_; 184 return webstore_update_url_;
185 } 185 }
186 186
187 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { 187 bool ShellExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
188 // TODO(rockot): Maybe we want to do something else here. For now we accept 188 // TODO(rockot): Maybe we want to do something else here. For now we accept
189 // any URL as a blacklist URL because we don't really care. 189 // any URL as a blacklist URL because we don't really care.
190 return true; 190 return true;
191 } 191 }
192 192
193 } // namespace extensions 193 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extension_host_delegate.cc ('k') | gin/public/v8_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698