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

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

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More IWYU, missing link-time dependency for Chrome Frame. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/message_loop.h"
12 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/notifications/desktop_notification_service.h" 15 #include "chrome/browser/notifications/desktop_notification_service.h"
15 #include "chrome/browser/notifications/notification.h" 16 #include "chrome/browser/notifications/notification.h"
16 #include "chrome/browser/notifications/notification_ui_manager.h" 17 #include "chrome/browser/notifications/notification_ui_manager.h"
17 #include "chrome/browser/prefs/pref_service.h" 18 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" 19 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h"
19 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/service/service_process_control.h" 21 #include "chrome/browser/service/service_process_control.h"
21 #include "chrome/browser/ui/browser_list.h" 22 #include "chrome/browser/ui/browser_list.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 proxy_id_ = proxy_info.proxy_id; 207 proxy_id_ = proxy_info.proxy_id;
207 profile_->GetPrefs()->SetString( 208 profile_->GetPrefs()->SetString(
208 prefs::kCloudPrintEmail, 209 prefs::kCloudPrintEmail,
209 proxy_info.enabled ? proxy_info.email : std::string()); 210 proxy_info.enabled ? proxy_info.email : std::string());
210 } 211 }
211 212
212 bool CloudPrintProxyService::InvokeServiceTask(const base::Closure& task) { 213 bool CloudPrintProxyService::InvokeServiceTask(const base::Closure& task) {
213 ServiceProcessControl::GetInstance()->Launch(task, base::Closure()); 214 ServiceProcessControl::GetInstance()->Launch(task, base::Closure());
214 return true; 215 return true;
215 } 216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698