| Index: chrome/browser/browser_init.cc
|
| ===================================================================
|
| --- chrome/browser/browser_init.cc (revision 59251)
|
| +++ chrome/browser/browser_init.cc (working copy)
|
| @@ -35,6 +35,7 @@
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/prefs/session_startup_pref.h"
|
| +#include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
|
| #include "chrome/browser/profile.h"
|
| #include "chrome/browser/renderer_host/render_process_host.h"
|
| #include "chrome/browser/search_engines/template_url.h"
|
| @@ -1048,6 +1049,13 @@
|
| }
|
| }
|
|
|
| + // If we have been invoked to display a desktop notification on behalf of
|
| + // the service process, we do not want to open any browser windows.
|
| + if (command_line.HasSwitch(switches::kNotifyCloudPrintTokenExpired)) {
|
| + silent_launch = true;
|
| + profile->GetCloudPrintProxyService()->ShowTokenExpiredNotification();
|
| + }
|
| +
|
| if (command_line.HasSwitch(switches::kExplicitlyAllowedPorts)) {
|
| std::string allowed_ports =
|
| command_line.GetSwitchValueASCII(switches::kExplicitlyAllowedPorts);
|
|
|