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

Side by Side Diff: chrome/browser/chromeos/login/authenticator.cc

Issue 4011001: Convert LOG(INFO) to VLOG(1) - chrome/browser/chromeos/login/.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser/chromeos/login/authenticator.h" 5 #include "chrome/browser/chromeos/login/authenticator.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 // static 23 // static
24 std::string Authenticator::Canonicalize(const std::string& email_address) { 24 std::string Authenticator::Canonicalize(const std::string& email_address) {
25 std::vector<std::string> parts; 25 std::vector<std::string> parts;
26 char at = '@'; 26 char at = '@';
27 base::SplitString(email_address, at, &parts); 27 base::SplitString(email_address, at, &parts);
28 DCHECK_EQ(parts.size(), 2U) << "email_address should have only one @"; 28 DCHECK_EQ(parts.size(), 2U) << "email_address should have only one @";
29 RemoveChars(parts[0], ".", &parts[0]); 29 RemoveChars(parts[0], ".", &parts[0]);
30 if (parts[0].find('+') != std::string::npos) 30 if (parts[0].find('+') != std::string::npos)
31 parts[0].erase(parts[0].find('+')); 31 parts[0].erase(parts[0].find('+'));
32 std::string new_email = StringToLowerASCII(JoinString(parts, at)); 32 std::string new_email = StringToLowerASCII(JoinString(parts, at));
33 LOG(INFO) << "Canonicalized " << email_address << " to " << new_email; 33 VLOG(1) << "Canonicalized " << email_address << " to " << new_email;
34 return new_email; 34 return new_email;
35 } 35 }
36 36
37 } // namespace chromeos 37 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698