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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
17 #include "base/location.h" 17 #include "base/location.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/prefs/pref_service.h"
20 #include "base/single_thread_task_runner.h" 19 #include "base/single_thread_task_runner.h"
21 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
22 #include "base/thread_task_runner_handle.h" 21 #include "base/thread_task_runner_handle.h"
23 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
24 #include "chrome/browser/chrome_notification_types.h" 23 #include "chrome/browser/chrome_notification_types.h"
25 #include "chrome/browser/lifetime/application_lifetime.h" 24 #include "chrome/browser/lifetime/application_lifetime.h"
26 #include "chrome/browser/notifications/notification.h" 25 #include "chrome/browser/notifications/notification.h"
27 #include "chrome/browser/notifications/notification_ui_manager.h" 26 #include "chrome/browser/notifications/notification_ui_manager.h"
28 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/browser/service_process/service_process_control.h" 28 #include "chrome/browser/service_process/service_process_control.h"
30 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" 30 #include "chrome/common/cloud_print/cloud_print_proxy_info.h"
32 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
33 #include "chrome/common/service_messages.h" 32 #include "chrome/common/service_messages.h"
33 #include "components/prefs/pref_service.h"
34 #include "content/public/browser/browser_thread.h" 34 #include "content/public/browser/browser_thread.h"
35 #include "printing/backend/print_backend.h" 35 #include "printing/backend/print_backend.h"
36 36
37 using content::BrowserThread; 37 using content::BrowserThread;
38 38
39 CloudPrintProxyService::CloudPrintProxyService(Profile* profile) 39 CloudPrintProxyService::CloudPrintProxyService(Profile* profile)
40 : profile_(profile), 40 : profile_(profile),
41 weak_factory_(this) { 41 weak_factory_(this) {
42 } 42 }
43 43
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 bool CloudPrintProxyService::InvokeServiceTask(const base::Closure& task) { 208 bool CloudPrintProxyService::InvokeServiceTask(const base::Closure& task) {
209 GetServiceProcessControl()->Launch(task, base::Closure()); 209 GetServiceProcessControl()->Launch(task, base::Closure());
210 return true; 210 return true;
211 } 211 }
212 212
213 ServiceProcessControl* CloudPrintProxyService::GetServiceProcessControl() { 213 ServiceProcessControl* CloudPrintProxyService::GetServiceProcessControl() {
214 return ServiceProcessControl::GetInstance(); 214 return ServiceProcessControl::GetInstance();
215 } 215 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698