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