Fix for ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/*
commit75277b0f5f91981603f04c7d39a582b700e45830
authordeepak.m1 <deepak.m1@samsung.com>
Wed, 15 Apr 2015 06:30:11 +0000 (14 23:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 15 Apr 2015 06:30:30 +0000 (15 06:30 +0000)
tree2be2ad3127bd85239d66496c782422b40e14905f
parentd7f0d7b7cbdd2b4645bcca1b8703307b9d7266a5
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

Review URL: https://codereview.chromium.org/1025613003

Cr-Commit-Position: refs/heads/master@{#325197}
chrome/browser/extensions/extension_prefs_unittest.cc
chrome/browser/extensions/test_extension_prefs.cc
chrome/browser/extensions/test_extension_prefs.h
extensions/browser/extension_prefs.cc
extensions/browser/extension_prefs.h