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

Side by Side Diff: chrome/browser/signin/easy_unlock_service_signin_chromeos.cc

Issue 868133005: [Smart Lock] Add error message strings for the "Tx Power too high" case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update TODO comment Created 5 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/signin/easy_unlock_service_signin_chromeos.h" 5 #include "chrome/browser/signin/easy_unlock_service_signin_chromeos.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 break; 238 break;
239 case EasyUnlockScreenlockStateHandler::STATE_PHONE_UNSUPPORTED: 239 case EasyUnlockScreenlockStateHandler::STATE_PHONE_UNSUPPORTED:
240 event = chromeos::PASSWORD_SIGN_IN_PHONE_UNSUPPORTED; 240 event = chromeos::PASSWORD_SIGN_IN_PHONE_UNSUPPORTED;
241 break; 241 break;
242 case EasyUnlockScreenlockStateHandler::STATE_RSSI_TOO_LOW: 242 case EasyUnlockScreenlockStateHandler::STATE_RSSI_TOO_LOW:
243 event = chromeos::PASSWORD_SIGN_IN_RSSI_TOO_LOW; 243 event = chromeos::PASSWORD_SIGN_IN_RSSI_TOO_LOW;
244 break; 244 break;
245 case EasyUnlockScreenlockStateHandler::STATE_TX_POWER_TOO_HIGH: 245 case EasyUnlockScreenlockStateHandler::STATE_TX_POWER_TOO_HIGH:
246 event = chromeos::PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH; 246 event = chromeos::PASSWORD_SIGN_IN_TX_POWER_TOO_HIGH;
247 break; 247 break;
248 case EasyUnlockScreenlockStateHandler::
249 STATE_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH:
250 event = chromeos::PASSWORD_SIGN_IN_PHONE_LOCKED_AND_TX_POWER_TOO_HIGH;
251 break;
248 case EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED: 252 case EasyUnlockScreenlockStateHandler::STATE_AUTHENTICATED:
249 event = chromeos::PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE; 253 event = chromeos::PASSWORD_SIGN_IN_WITH_AUTHENTICATED_PHONE;
250 break; 254 break;
251 } 255 }
252 } 256 }
253 257
254 chromeos::RecordEasyUnlockLoginEvent(event); 258 chromeos::RecordEasyUnlockLoginEvent(event);
255 DVLOG(1) << "EasySignIn password login event, event=" << event; 259 DVLOG(1) << "EasySignIn password login event, event=" << event;
256 } 260 }
257 261
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 return NULL; 388 return NULL;
385 389
386 std::map<std::string, UserData*>::const_iterator it = 390 std::map<std::string, UserData*>::const_iterator it =
387 user_data_.find(user_id_); 391 user_data_.find(user_id_);
388 if (it == user_data_.end()) 392 if (it == user_data_.end())
389 return NULL; 393 return NULL;
390 if (it->second->state != USER_DATA_STATE_LOADED) 394 if (it->second->state != USER_DATA_STATE_LOADED)
391 return NULL; 395 return NULL;
392 return it->second; 396 return it->second;
393 } 397 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_screenlock_state_handler.cc ('k') | chrome/common/extensions/api/easy_unlock_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698