Index: chrome/browser/ui/browser_init.cc |
=================================================================== |
--- chrome/browser/ui/browser_init.cc (revision 72336) |
+++ chrome/browser/ui/browser_init.cc (working copy) |
@@ -1124,7 +1124,13 @@ |
silent_launch = true; |
profile->GetCloudPrintProxyService()->ShowTokenExpiredNotification(); |
} |
+ // If we are just displaying a print dialog we shouldn't open browser |
+ // windows. |
+ if (!command_line.GetSwitchValuePath(switches::kCloudPrintFile).empty()) { |
+ silent_launch = true; |
+ } |
+ |
if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) { |
std::string allowed_ports = |
command_line.GetSwitchValueASCII(switches::kExplicitlyAllowedPorts); |