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_connector.h" | 5 #include "chrome/service/cloud_print/cloud_print_connector.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/md5.h" | 10 #include "base/md5.h" |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 mime_type += mime_boundary; | 646 mime_type += mime_boundary; |
647 | 647 |
648 GURL post_url = GetUrlForPrinterRegistration(settings_.server_url()); | 648 GURL post_url = GetUrlForPrinterRegistration(settings_.server_url()); |
649 StartPostRequest(CloudPrintURLFetcher::REQUEST_REGISTER, post_url, | 649 StartPostRequest(CloudPrintURLFetcher::REQUEST_REGISTER, post_url, |
650 kCloudPrintAPIMaxRetryCount, mime_type, post_data, | 650 kCloudPrintAPIMaxRetryCount, mime_type, post_data, |
651 &CloudPrintConnector::HandleRegisterPrinterResponse); | 651 &CloudPrintConnector::HandleRegisterPrinterResponse); |
652 } | 652 } |
653 | 653 |
654 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, | 654 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, |
655 const std::string& name2) const { | 655 const std::string& name2) const { |
656 return (0 == base::strcasecmp(name1.c_str(), name2.c_str())); | 656 return base::EqualsCaseInsensitiveASCII(name1, name2); |
657 } | 657 } |
658 | 658 |
659 } // namespace cloud_print | 659 } // namespace cloud_print |
OLD | NEW |