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

Unified Diff: chrome/browser/ui/browser_init.cc

Issue 6038008: Modify chrome to accept a pdf file on the command line and upload it to Cloud... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
Index: chrome/browser/ui/browser_init.cc
===================================================================
--- chrome/browser/ui/browser_init.cc (revision 71046)
+++ 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)) {
sanjeevr 2011/01/13 18:03:41 Here also we should check if there is a path actua
abodenha 2011/01/13 19:03:59 Done.
+ silent_launch = true;
+ }
+
if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) {
std::string allowed_ports =
command_line.GetSwitchValueASCII(switches::kExplicitlyAllowedPorts);

Powered by Google App Engine
This is Rietveld 408576698