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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_proxy_service.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" 5 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h"
6 6
7 #include <stack> 7 #include <stack>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/browser_list.h" 12 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/notifications/desktop_notification_service.h" 14 #include "chrome/browser/notifications/desktop_notification_service.h"
15 #include "chrome/browser/notifications/notification.h" 15 #include "chrome/browser/notifications/notification.h"
16 #include "chrome/browser/notifications/notification_ui_manager.h" 16 #include "chrome/browser/notifications/notification_ui_manager.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/service/service_process_control.h" 19 #include "chrome/browser/service/service_process_control.h"
20 #include "chrome/browser/service/service_process_control_manager.h" 20 #include "chrome/browser/service/service_process_control_manager.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "chrome/common/service_messages.h" 22 #include "chrome/common/service_messages.h"
23 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
24 24
25 // TODO(sanjeevr): Localize the product name? 25 // TODO(sanjeevr): Localize the product name?
26 const char kCloudPrintProductName[] = "Google Cloud Print"; 26 const char kCloudPrintProductName[] = "Google Cloud Print";
27 27
28 class CloudPrintProxyService::TokenExpiredNotificationDelegate 28 class CloudPrintProxyService::TokenExpiredNotificationDelegate
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 bool CloudPrintProxyService::InvokeServiceTask(Task* task) { 175 bool CloudPrintProxyService::InvokeServiceTask(Task* task) {
176 ServiceProcessControl* process_control = 176 ServiceProcessControl* process_control =
177 ServiceProcessControlManager::instance()->GetProcessControl(profile_); 177 ServiceProcessControlManager::instance()->GetProcessControl(profile_);
178 DCHECK(process_control); 178 DCHECK(process_control);
179 if (process_control) 179 if (process_control)
180 process_control->Launch(task, NULL); 180 process_control->Launch(task, NULL);
181 return !!process_control; 181 return !!process_control;
182 } 182 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/session_startup_pref.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698