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