Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: chrome/service/cloud_print/cloud_print_connector.cc

Issue 1224553010: Replace base::str[n]casecmp with helper functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698