OLD | NEW |
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/extensions/api/easy_unlock_private/easy_unlock_private_
api.h" | 5 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_
api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_UNAVAILBLE, device_type)); | 306 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_UNAVAILBLE, device_type)); |
307 strings->SetString( | 307 strings->SetString( |
308 "setupErrorOffline", | 308 "setupErrorOffline", |
309 l10n_util::GetStringFUTF16( | 309 l10n_util::GetStringFUTF16( |
310 IDS_EASY_UNLOCK_SETUP_ERROR_OFFLINE, device_type)); | 310 IDS_EASY_UNLOCK_SETUP_ERROR_OFFLINE, device_type)); |
311 strings->SetString( | 311 strings->SetString( |
312 "setupErrorRemoteSoftwareOutOfDate", | 312 "setupErrorRemoteSoftwareOutOfDate", |
313 l10n_util::GetStringUTF16( | 313 l10n_util::GetStringUTF16( |
314 IDS_EASY_UNLOCK_SETUP_ERROR_REMOTE_SOFTWARE_OUT_OF_DATE)); | 314 IDS_EASY_UNLOCK_SETUP_ERROR_REMOTE_SOFTWARE_OUT_OF_DATE)); |
315 strings->SetString( | 315 strings->SetString( |
| 316 "setupErrorRemoteSoftwareOutOfDateGeneric", |
| 317 l10n_util::GetStringUTF16( |
| 318 IDS_EASY_UNLOCK_SETUP_ERROR_REMOTE_SOFTWARE_OUT_OF_DATE_GENERIC)); |
| 319 strings->SetString( |
316 "setupErrorFindingPhone", | 320 "setupErrorFindingPhone", |
317 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SETUP_ERROR_FINDING_PHONE)); | 321 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SETUP_ERROR_FINDING_PHONE)); |
318 strings->SetString( | 322 strings->SetString( |
319 "setupErrorSyncPhoneState", | 323 "setupErrorSyncPhoneState", |
320 l10n_util::GetStringUTF16( | 324 l10n_util::GetStringUTF16( |
321 IDS_EASY_UNLOCK_SETUP_ERROR_SYNC_PHONE_STATE_FAILED)); | 325 IDS_EASY_UNLOCK_SETUP_ERROR_SYNC_PHONE_STATE_FAILED)); |
322 strings->SetString( | 326 strings->SetString( |
323 "setupErrorConnectingToPhone", | 327 "setupErrorConnectingToPhone", |
324 l10n_util::GetStringFUTF16( | 328 l10n_util::GetStringFUTF16( |
325 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type)); | 329 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type)); |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 | 811 |
808 Profile* profile = Profile::FromBrowserContext(browser_context()); | 812 Profile* profile = Profile::FromBrowserContext(browser_context()); |
809 EasyUnlockService::Get(profile) | 813 EasyUnlockService::Get(profile) |
810 ->SetAutoPairingResult(params->result.success, error_message); | 814 ->SetAutoPairingResult(params->result.success, error_message); |
811 | 815 |
812 return true; | 816 return true; |
813 } | 817 } |
814 | 818 |
815 } // namespace api | 819 } // namespace api |
816 } // namespace extensions | 820 } // namespace extensions |
OLD | NEW |