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

Side by Side Diff: extensions/test/test_extensions_client.cc

Issue 2489233003: [extensions] Remove unnecessary checks in IsSensitiveURL (Closed)
Patch Set: more DomainIs Created 4 years, 1 month 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/common/extension_urls.cc ('k') | no next file » | 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/test/test_extensions_client.h" 5 #include "extensions/test/test_extensions_client.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "extensions/common/api/generated_schemas.h" 8 #include "extensions/common/api/generated_schemas.h"
9 #include "extensions/common/common_manifest_handlers.h" 9 #include "extensions/common/common_manifest_handlers.h"
10 #include "extensions/common/extension_urls.h" 10 #include "extensions/common/extension_urls.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 std::string TestExtensionsClient::GetWebstoreBaseURL() const { 150 std::string TestExtensionsClient::GetWebstoreBaseURL() const {
151 return extension_urls::kChromeWebstoreBaseURL; 151 return extension_urls::kChromeWebstoreBaseURL;
152 } 152 }
153 153
154 std::string TestExtensionsClient::GetWebstoreUpdateURL() const { 154 std::string TestExtensionsClient::GetWebstoreUpdateURL() const {
155 return extension_urls::kChromeWebstoreUpdateURL; 155 return extension_urls::kChromeWebstoreUpdateURL;
156 } 156 }
157 157
158 bool TestExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const { 158 bool TestExtensionsClient::IsBlacklistUpdateURL(const GURL& url) const {
159 return true; 159 return false;
160 } 160 }
161 161
162 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths( 162 std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths(
163 const Extension* extension) { 163 const Extension* extension) {
164 std::set<base::FilePath> result = 164 std::set<base::FilePath> result =
165 ExtensionsClient::GetBrowserImagePaths(extension); 165 ExtensionsClient::GetBrowserImagePaths(extension);
166 for (auto* filter : browser_image_filters_) 166 for (auto* filter : browser_image_filters_)
167 filter->Filter(extension, &result); 167 filter->Filter(extension, &result);
168 return result; 168 return result;
169 } 169 }
170 170
171 } // namespace extensions 171 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension_urls.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698