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/service_process.h" | 5 #include "chrome/service/service_process.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/environment.h" | 12 #include "base/environment.h" |
13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/prefs/json_pref_store.h" | 16 #include "base/prefs/json_pref_store.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/common/chrome_paths.h" | 21 #include "chrome/common/chrome_paths.h" |
22 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
23 #include "chrome/common/env_vars.h" | 23 #include "chrome/common/env_vars.h" |
24 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
25 #include "chrome/common/service_process_util.h" | 25 #include "chrome/common/service_process_util.h" |
| 26 #include "chrome/grit/chromium_strings.h" |
| 27 #include "chrome/grit/generated_resources.h" |
26 #include "chrome/service/cloud_print/cloud_print_proxy.h" | 28 #include "chrome/service/cloud_print/cloud_print_proxy.h" |
27 #include "chrome/service/net/service_url_request_context_getter.h" | 29 #include "chrome/service/net/service_url_request_context_getter.h" |
28 #include "chrome/service/service_ipc_server.h" | 30 #include "chrome/service/service_ipc_server.h" |
29 #include "chrome/service/service_process_prefs.h" | 31 #include "chrome/service/service_process_prefs.h" |
30 #include "grit/chromium_strings.h" | |
31 #include "grit/generated_resources.h" | |
32 #include "net/base/network_change_notifier.h" | 32 #include "net/base/network_change_notifier.h" |
33 #include "net/url_request/url_fetcher.h" | 33 #include "net/url_request/url_fetcher.h" |
34 #include "ui/base/l10n/l10n_util.h" | 34 #include "ui/base/l10n/l10n_util.h" |
35 #include "ui/base/resource/resource_bundle.h" | 35 #include "ui/base/resource/resource_bundle.h" |
36 #include "ui/base/ui_base_switches.h" | 36 #include "ui/base/ui_base_switches.h" |
37 | 37 |
38 #if defined(USE_GLIB) | 38 #if defined(USE_GLIB) |
39 #include <glib-object.h> | 39 #include <glib-object.h> |
40 #endif | 40 #endif |
41 | 41 |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 if (enabled_services_ && !ipc_server_->is_client_connected()) { | 363 if (enabled_services_ && !ipc_server_->is_client_connected()) { |
364 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); | 364 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); |
365 } | 365 } |
366 ScheduleCloudPrintPolicyCheck(); | 366 ScheduleCloudPrintPolicyCheck(); |
367 } | 367 } |
368 | 368 |
369 ServiceProcess::~ServiceProcess() { | 369 ServiceProcess::~ServiceProcess() { |
370 Teardown(); | 370 Teardown(); |
371 g_service_process = NULL; | 371 g_service_process = NULL; |
372 } | 372 } |
OLD | NEW |