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

Unified Diff: chrome/common/extensions/api/extension_api_unittest.cc

Issue 443723003: extensions: Register 'app' and 'webstore' bindings only if they are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api_unittest.cc
diff --git a/chrome/common/extensions/api/extension_api_unittest.cc b/chrome/common/extensions/api/extension_api_unittest.cc
index 58c72ac362f6ea7785235ef66838cd0dacb63248..f4ff18660d50d1f126968b43187ab3722e7bb628 100644
--- a/chrome/common/extensions/api/extension_api_unittest.cc
+++ b/chrome/common/extensions/api/extension_api_unittest.cc
@@ -673,9 +673,9 @@ TEST(ExtensionAPITest, URLMatching) {
EXPECT_TRUE(MatchesURL(api.get(), "app", "https://blah.net"));
EXPECT_TRUE(MatchesURL(api.get(), "app", "file://somefile.html"));
- // But not internal URLs.
- EXPECT_FALSE(MatchesURL(api.get(), "app", "about:flags"));
- EXPECT_FALSE(MatchesURL(api.get(), "app", "chrome://flags"));
+ // Also to internal URLs.
+ EXPECT_TRUE(MatchesURL(api.get(), "app", "about:flags"));
+ EXPECT_TRUE(MatchesURL(api.get(), "app", "chrome://flags"));
not at google - send to devlin 2014/08/06 17:26:18 Ah I think you caught an actual bug here. we shoul
sadrul 2014/08/06 18:51:51 Done.
// "app" should be available to chrome-extension URLs.
EXPECT_TRUE(MatchesURL(api.get(), "app",
« no previous file with comments | « chrome/common/extensions/api/_api_features.json ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698