From 73852b8f9c03c6b7a27436f828ed888f71232257 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 14 May 2010 00:38:12 +0000 Subject: [Large; Chromium OS] Work to host the cloud print dialog when built for Chromium OS. Currently disabled by default behind a command line switch, and containing a non-real URL for now, this code is at prototype level. It works (when enabled and pointed at a functioning cloud print service URL), has the beginnings of some unit tests, and has the beginnings of deeper communication with the dialog contents, and it shuts off the DOM UI access from the dialog contents. Patch contributed by Scott Byer Review URL: http://codereview.chromium.org/1769006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47228 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/browser.cc') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index aee74e5..f375ce0 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -3046,7 +3046,8 @@ void Browser::InitCommandState() { #if defined(OS_CHROMEOS) command_updater_.UpdateCommandEnabled(IDC_COMPACT_NAVBAR, true); - command_updater_.UpdateCommandEnabled(IDC_PRINT, false); + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableCloudPrint)) + command_updater_.UpdateCommandEnabled(IDC_PRINT, false); #endif ExtensionsService* extensions_service = profile()->GetExtensionsService(); bool enable_extensions = -- cgit v1.1