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

Unified Diff: chrome/browser/renderer_host/renderer_security_policy_unittest.cc

Issue 101026: Change chrome-ui to chrome. I didn't go too far in converting existing string... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/renderer_host/renderer_security_policy.cc ('k') | chrome/browser/resources/downloads.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/renderer_security_policy_unittest.cc
===================================================================
--- chrome/browser/renderer_host/renderer_security_policy_unittest.cc (revision 15342)
+++ chrome/browser/renderer_host/renderer_security_policy_unittest.cc (working copy)
@@ -16,12 +16,12 @@
protected:
// testing::Test
virtual void SetUp() {
- // In the real world, "chrome-ui" is a handled scheme.
- URLRequest::RegisterProtocolFactory("chrome-ui",
+ // In the real world, "chrome:" is a handled scheme.
+ URLRequest::RegisterProtocolFactory(chrome::kChromeUIScheme,
&URLRequestTestJob::Factory);
}
virtual void TearDown() {
- URLRequest::RegisterProtocolFactory("chrome-ui", NULL);
+ URLRequest::RegisterProtocolFactory(chrome::kChromeUIScheme, NULL);
}
};
@@ -74,7 +74,7 @@
EXPECT_FALSE(p->CanRequestURL(kRendererID,
GURL("view-cache:http://www.google.com/")));
EXPECT_FALSE(p->CanRequestURL(kRendererID,
- GURL("chrome-ui://foo/bar")));
+ GURL("chrome://foo/bar")));
p->Remove(kRendererID);
}
@@ -212,7 +212,7 @@
TEST_F(RendererSecurityPolicyTest, CanServiceInspectElement) {
RendererSecurityPolicy* p = RendererSecurityPolicy::GetInstance();
- GURL url("chrome-ui://inspector/inspector.html");
+ GURL url("chrome://inspector/inspector.html");
p->Add(kRendererID);
@@ -226,7 +226,7 @@
TEST_F(RendererSecurityPolicyTest, CanServiceDOMUIBindings) {
RendererSecurityPolicy* p = RendererSecurityPolicy::GetInstance();
- GURL url("chrome-ui://thumb/http://www.google.com/");
+ GURL url("chrome://thumb/http://www.google.com/");
p->Add(kRendererID);
« no previous file with comments | « chrome/browser/renderer_host/renderer_security_policy.cc ('k') | chrome/browser/resources/downloads.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698