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

Issue 1025613003: Fix for ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/* (Closed)

Created:
5 years, 9 months ago by Deepak
Modified:
5 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/* This issue is due to usage of UserScript::ValidUserScriptSchemes() instead of UserScript::kValidUserScriptSchemes, we will add CHROMEUI scheme in valid schemes mask if extension is component extension. BUG=467230 Committed: https://crrev.com/75277b0f5f91981603f04c7d39a582b700e45830 Cr-Commit-Position: refs/heads/master@{#325197}

Patch Set 1 #

Patch Set 2 : Adding exception for component extensions. #

Total comments: 1

Patch Set 3 : Changes as per review comments. #

Total comments: 4

Patch Set 4 : Changes as per review comments. #

Patch Set 5 : Adding test case. #

Total comments: 10

Patch Set 6 : Changes as per review comments. #

Total comments: 2

Patch Set 7 : Changes as per review comments. #

Total comments: 6

Patch Set 8 : Changes as per review comments. #

Total comments: 2

Patch Set 9 : Changes as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -0 lines) Patch
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +80 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/browser/extension_prefs.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (4 generated)
Deepak
PTAL at a small change for passing proper value of valid_schemes as UserScript::kValidUserScriptSchemes for resolving ...
5 years, 9 months ago (2015-03-20 15:59:02 UTC) #2
Ken Rockot(use gerrit already)
On 2015/03/20 15:59:02, Deepak wrote: > PTAL at a small change for passing proper value ...
5 years, 9 months ago (2015-03-20 16:12:04 UTC) #3
Deepak
On 2015/03/20 16:12:04, Ken Rockot wrote: > On 2015/03/20 15:59:02, Deepak wrote: > > PTAL ...
5 years, 9 months ago (2015-03-20 16:19:55 UTC) #4
Ken Rockot(use gerrit already)
On 2015/03/20 16:19:55, Deepak wrote: > On 2015/03/20 16:12:04, Ken Rockot wrote: > > On ...
5 years, 9 months ago (2015-03-20 16:23:50 UTC) #5
Ken Rockot(use gerrit already)
+kalman to sanity-check my suggestion
5 years, 9 months ago (2015-03-20 16:24:49 UTC) #7
not at google - send to devlin
I agree, not lgtm. To iterate on Ken's suggestion, how about passing the extension into ...
5 years, 9 months ago (2015-03-20 16:36:45 UTC) #8
Deepak
@Rockot Thanks for review and suggestion. Changes done for adding CHROMEUI in valid schemes when ...
5 years, 9 months ago (2015-03-21 09:45:09 UTC) #9
Deepak
@Rockot Thanks for review and suggestion. Changes done for adding CHROMEUI in valid schemes when ...
5 years, 9 months ago (2015-03-24 10:17:12 UTC) #10
Ken Rockot(use gerrit already)
LGTM, thanks! Unfortunately I think kalman will need to also give his LGTM before this ...
5 years, 9 months ago (2015-03-24 16:49:09 UTC) #11
Deepak
On 2015/03/24 16:49:09, Ken Rockot wrote: > LGTM, thanks! > > Unfortunately I think kalman ...
5 years, 9 months ago (2015-03-25 03:33:56 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/1025613003/diff/40001/extensions/browser/extension_prefs.cc File extensions/browser/extension_prefs.cc (right): https://codereview.chromium.org/1025613003/diff/40001/extensions/browser/extension_prefs.cc#newcode566 extensions/browser/extension_prefs.cc:566: const base::DictionaryValue* extensions = GetExtensionPref(extension_id); Hm, would be nice ...
5 years, 8 months ago (2015-03-30 19:54:09 UTC) #13
Deepak
@kalman Thanks for review. Changes done as suggested. PTAL https://codereview.chromium.org/1025613003/diff/40001/extensions/browser/extension_prefs.cc File extensions/browser/extension_prefs.cc (right): https://codereview.chromium.org/1025613003/diff/40001/extensions/browser/extension_prefs.cc#newcode566 extensions/browser/extension_prefs.cc:566: ...
5 years, 8 months ago (2015-04-07 14:25:42 UTC) #14
not at google - send to devlin
looks fine, but can you write a test?
5 years, 8 months ago (2015-04-07 20:57:10 UTC) #15
Deepak
On 2015/04/07 20:57:10, kalman wrote: > looks fine, but can you write a test? @kalman ...
5 years, 8 months ago (2015-04-08 11:18:46 UTC) #16
not at google - send to devlin
On 2015/04/08 11:18:46, Deepak wrote: > On 2015/04/07 20:57:10, kalman wrote: > > looks fine, ...
5 years, 8 months ago (2015-04-08 17:06:14 UTC) #17
Deepak
Test Case added. It is working as expected when I am getting extension from GetExtensionPref() ...
5 years, 8 months ago (2015-04-09 11:43:40 UTC) #18
not at google - send to devlin
https://codereview.chromium.org/1025613003/diff/80001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/80001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode934 chrome/browser/extensions/extension_prefs_unittest.cc:934: AddPattern(&shosts, "chrome://print/*"); Thanks for writing this test, getting there, ...
5 years, 8 months ago (2015-04-09 14:56:07 UTC) #19
Deepak
@kalman Changes done as suggested and it is working as expected. PTAL Thanks https://codereview.chromium.org/1025613003/diff/80001/chrome/browser/extensions/extension_prefs_unittest.cc File ...
5 years, 8 months ago (2015-04-10 05:16:34 UTC) #20
not at google - send to devlin
https://codereview.chromium.org/1025613003/diff/100001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/100001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode921 chrome/browser/extensions/extension_prefs_unittest.cc:921: prefs_.AddExtensionWithManifestLocation("test", Manifest::COMPONENT); I don't understand. This isn't what I ...
5 years, 8 months ago (2015-04-10 17:49:26 UTC) #21
Deepak
Changes done as suggested. PTAL Thanks. https://codereview.chromium.org/1025613003/diff/100001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/100001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode921 chrome/browser/extensions/extension_prefs_unittest.cc:921: prefs_.AddExtensionWithManifestLocation("test", Manifest::COMPONENT); On ...
5 years, 8 months ago (2015-04-11 05:35:27 UTC) #22
Deepak
@kalman PTAL Thanks
5 years, 8 months ago (2015-04-13 15:16:08 UTC) #23
not at google - send to devlin
https://codereview.chromium.org/1025613003/diff/120001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/120001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode931 chrome/browser/extensions/extension_prefs_unittest.cc:931: // Adding a non component extension. It would be ...
5 years, 8 months ago (2015-04-13 17:24:35 UTC) #24
Deepak
Thanks for review. Changes done as suggested. PTAL Thanks https://codereview.chromium.org/1025613003/diff/120001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/120001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode931 chrome/browser/extensions/extension_prefs_unittest.cc:931: ...
5 years, 8 months ago (2015-04-14 05:05:42 UTC) #25
not at google - send to devlin
lgtm https://codereview.chromium.org/1025613003/diff/140001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/140001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode971 chrome/browser/extensions/extension_prefs_unittest.cc:971: EXPECT_TRUE(no_component_permissions->scriptable_hosts().is_empty()); Btw I actually prefer (but often forget ...
5 years, 8 months ago (2015-04-14 15:38:35 UTC) #26
Deepak
On 2015/04/14 15:38:35, kalman wrote: > lgtm > > https://codereview.chromium.org/1025613003/diff/140001/chrome/browser/extensions/extension_prefs_unittest.cc > File chrome/browser/extensions/extension_prefs_unittest.cc (right): > ...
5 years, 8 months ago (2015-04-15 04:41:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1025613003/160001
5 years, 8 months ago (2015-04-15 04:41:58 UTC) #30
Deepak
Thanks for review. Changes done as suggested. Thanks https://codereview.chromium.org/1025613003/diff/140001/chrome/browser/extensions/extension_prefs_unittest.cc File chrome/browser/extensions/extension_prefs_unittest.cc (right): https://codereview.chromium.org/1025613003/diff/140001/chrome/browser/extensions/extension_prefs_unittest.cc#newcode971 chrome/browser/extensions/extension_prefs_unittest.cc:971: EXPECT_TRUE(no_component_permissions->scriptable_hosts().is_empty()); ...
5 years, 8 months ago (2015-04-15 04:42:41 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 8 months ago (2015-04-15 06:30:27 UTC) #32
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 06:31:13 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/75277b0f5f91981603f04c7d39a582b700e45830
Cr-Commit-Position: refs/heads/master@{#325197}

Powered by Google App Engine
This is Rietveld 408576698