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

Unified Diff: chrome/browser/extensions/active_tab_unittest.cc

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: chrome/browser/extensions/active_tab_unittest.cc
diff --git a/chrome/browser/extensions/active_tab_unittest.cc b/chrome/browser/extensions/active_tab_unittest.cc
index d86665aae0771eb5c52918d4a8a1620bd7e55ccd..3a678df4a497837f30c4d8beaed0579201f8115e 100644
--- a/chrome/browser/extensions/active_tab_unittest.cc
+++ b/chrome/browser/extensions/active_tab_unittest.cc
@@ -108,7 +108,7 @@ class ActiveTabTest : public ChromeRenderViewHostTestHarness {
int tab_id) {
const PermissionsData* permissions_data = extension->permissions_data();
bool script = permissions_data->CanAccessPage(
- extension.get(), url, url, tab_id, -1, NULL);
+ extension.get(), url, tab_id, -1, NULL);
bool capture = HasTabsPermission(extension, tab_id) &&
permissions_data->CanCaptureVisiblePage(tab_id, NULL);
switch (feature) {
@@ -276,7 +276,7 @@ TEST_F(ActiveTabTest, GrantToSinglePage) {
EXPECT_TRUE(IsAllowed(extension, chromium, PERMITTED_CAPTURE_ONLY));
EXPECT_TRUE(IsAllowed(another_extension, chromium, PERMITTED_CAPTURE_ONLY));
EXPECT_TRUE(IsBlocked(extension_without_active_tab, chromium));
-};
+}
TEST_F(ActiveTabTest, Uninstalling) {
// Some semi-arbitrary setup.

Powered by Google App Engine
This is Rietveld 408576698