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

Unified Diff: chrome/renderer/render_thread.cc

Issue 155067: Hookup Print HTML page to the DOM UI for Print Preview and Settings... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/resources/print_tab.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
===================================================================
--- chrome/renderer/render_thread.cc (revision 20594)
+++ chrome/renderer/render_thread.cc (working copy)
@@ -350,6 +350,11 @@
WebKit::registerURLSchemeAsLocal(chrome_ui_scheme);
WebKit::registerURLSchemeAsNoAccess(chrome_ui_scheme);
+ // print: pages should be not accessible by normal context.
+ WebString print_ui_scheme(ASCIIToUTF16(chrome::kPrintScheme));
+ WebKit::registerURLSchemeAsLocal(print_ui_scheme);
+ WebKit::registerURLSchemeAsNoAccess(print_ui_scheme);
+
#if defined(OS_WIN)
// We don't yet support Gears on non-Windows, so don't tell pages that we do.
WebKit::registerExtension(extensions_v8::GearsExtension::Get());
« no previous file with comments | « chrome/browser/resources/print_tab.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698