OLD | NEW |
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/service/cloud_print/cloud_print_proxy.h" | 5 #include "chrome/service/cloud_print/cloud_print_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" | 13 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" |
14 #include "chrome/common/net/gaia/gaia_oauth_client.h" | |
15 #include "chrome/common/net/google_apis/google_api_keys.h" | |
16 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
17 #include "chrome/service/cloud_print/cloud_print_consts.h" | 15 #include "chrome/service/cloud_print/cloud_print_consts.h" |
18 #include "chrome/service/cloud_print/print_system.h" | 16 #include "chrome/service/cloud_print/print_system.h" |
19 #include "chrome/service/service_process.h" | 17 #include "chrome/service/service_process.h" |
20 #include "chrome/service/service_process_prefs.h" | 18 #include "chrome/service/service_process_prefs.h" |
| 19 #include "google_apis/gaia/gaia_oauth_client.h" |
| 20 #include "google_apis/google_api_keys.h" |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 void LaunchBrowserProcessWithSwitch(const std::string& switch_string) { | 25 void LaunchBrowserProcessWithSwitch(const std::string& switch_string) { |
26 DCHECK(g_service_process->io_thread()->message_loop_proxy()-> | 26 DCHECK(g_service_process->io_thread()->message_loop_proxy()-> |
27 BelongsToCurrentThread()); | 27 BelongsToCurrentThread()); |
28 FilePath exe_path; | 28 FilePath exe_path; |
29 PathService::Get(base::FILE_EXE, &exe_path); | 29 PathService::Get(base::FILE_EXE, &exe_path); |
30 if (exe_path.empty()) { | 30 if (exe_path.empty()) { |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 // Finish disabling cloud print for this user. | 286 // Finish disabling cloud print for this user. |
287 DisableForUser(); | 287 DisableForUser(); |
288 } | 288 } |
289 | 289 |
290 void CloudPrintProxy::ShutdownBackend() { | 290 void CloudPrintProxy::ShutdownBackend() { |
291 DCHECK(CalledOnValidThread()); | 291 DCHECK(CalledOnValidThread()); |
292 if (backend_.get()) | 292 if (backend_.get()) |
293 backend_->Shutdown(); | 293 backend_->Shutdown(); |
294 backend_.reset(); | 294 backend_.reset(); |
295 } | 295 } |
OLD | NEW |