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/connector_settings.h" | 5 #include "chrome/service/cloud_print/connector_settings.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
8 #include "base/values.h" | 10 #include "base/values.h" |
9 #include "chrome/common/cloud_print/cloud_print_constants.h" | 11 #include "chrome/common/cloud_print/cloud_print_constants.h" |
10 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
11 #include "chrome/service/cloud_print/print_system.h" | 13 #include "chrome/service/cloud_print/print_system.h" |
12 #include "chrome/service/service_process_prefs.h" | 14 #include "chrome/service/service_process_prefs.h" |
13 #include "components/cloud_devices/common/cloud_devices_urls.h" | 15 #include "components/cloud_devices/common/cloud_devices_urls.h" |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void ConnectorSettings::SetXmppPingTimeoutSec(int timeout) { | 118 void ConnectorSettings::SetXmppPingTimeoutSec(int timeout) { |
117 xmpp_ping_timeout_sec_ = timeout; | 119 xmpp_ping_timeout_sec_ = timeout; |
118 if (xmpp_ping_timeout_sec_ < kMinXmppPingTimeoutSecs) { | 120 if (xmpp_ping_timeout_sec_ < kMinXmppPingTimeoutSecs) { |
119 LOG(WARNING) << | 121 LOG(WARNING) << |
120 "CP_CONNECTOR: XMPP ping timeout is less then minimal value"; | 122 "CP_CONNECTOR: XMPP ping timeout is less then minimal value"; |
121 xmpp_ping_timeout_sec_ = kMinXmppPingTimeoutSecs; | 123 xmpp_ping_timeout_sec_ = kMinXmppPingTimeoutSecs; |
122 } | 124 } |
123 } | 125 } |
124 | 126 |
125 } // namespace cloud_print | 127 } // namespace cloud_print |
OLD | NEW |