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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 "setupErrorBluetoothUnavailable", | 299 "setupErrorBluetoothUnavailable", |
300 l10n_util::GetStringFUTF16( | 300 l10n_util::GetStringFUTF16( |
301 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_UNAVAILBLE, device_type)); | 301 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_UNAVAILBLE, device_type)); |
302 strings->SetString( | 302 strings->SetString( |
303 "setupErrorOffline", | 303 "setupErrorOffline", |
304 l10n_util::GetStringFUTF16( | 304 l10n_util::GetStringFUTF16( |
305 IDS_EASY_UNLOCK_SETUP_ERROR_OFFLINE, device_type)); | 305 IDS_EASY_UNLOCK_SETUP_ERROR_OFFLINE, device_type)); |
306 strings->SetString( | 306 strings->SetString( |
307 "setupErrorFindingPhone", | 307 "setupErrorFindingPhone", |
308 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SETUP_ERROR_FINDING_PHONE)); | 308 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SETUP_ERROR_FINDING_PHONE)); |
309 // TODO(isherman): Remove the setupErrorBluetoothConnectionFailed string; it | |
310 // is unused. | |
311 strings->SetString( | |
312 "setupErrorBluetoothConnectionFailed", | |
313 l10n_util::GetStringFUTF16( | |
314 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_CONNECTION_FAILED, | |
315 device_type)); | |
316 // TODO(isherman): Remove the setupErrorConnectionToPhoneTimeout string; it is | |
317 // identical to the setupErrorConnectingToPhone string, and hence obsolete. | |
318 strings->SetString( | |
319 "setupErrorConnectionToPhoneTimeout", | |
320 l10n_util::GetStringFUTF16( | |
321 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECT_TO_PHONE_TIMEOUT, | |
322 device_type)); | |
323 strings->SetString( | 309 strings->SetString( |
324 "setupErrorSyncPhoneState", | 310 "setupErrorSyncPhoneState", |
325 l10n_util::GetStringUTF16( | 311 l10n_util::GetStringUTF16( |
326 IDS_EASY_UNLOCK_SETUP_ERROR_SYNC_PHONE_STATE_FAILED)); | 312 IDS_EASY_UNLOCK_SETUP_ERROR_SYNC_PHONE_STATE_FAILED)); |
327 strings->SetString( | 313 strings->SetString( |
328 "setupErrorConnectingToPhone", | 314 "setupErrorConnectingToPhone", |
329 l10n_util::GetStringFUTF16( | 315 l10n_util::GetStringFUTF16( |
330 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type)); | 316 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type)); |
331 | 317 |
332 // TODO(isherman): Remove this string once the app has been updated. | |
333 strings->SetString("setupIntroHeaderFootnote", base::string16()); | |
334 | |
335 SetResult(strings.release()); | 318 SetResult(strings.release()); |
336 return true; | 319 return true; |
337 } | 320 } |
338 | 321 |
339 EasyUnlockPrivatePerformECDHKeyAgreementFunction:: | 322 EasyUnlockPrivatePerformECDHKeyAgreementFunction:: |
340 EasyUnlockPrivatePerformECDHKeyAgreementFunction() {} | 323 EasyUnlockPrivatePerformECDHKeyAgreementFunction() {} |
341 | 324 |
342 EasyUnlockPrivatePerformECDHKeyAgreementFunction:: | 325 EasyUnlockPrivatePerformECDHKeyAgreementFunction:: |
343 ~EasyUnlockPrivatePerformECDHKeyAgreementFunction() {} | 326 ~EasyUnlockPrivatePerformECDHKeyAgreementFunction() {} |
344 | 327 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 gfx::Range(params->link_range.start, params->link_range.end), | 778 gfx::Range(params->link_range.start, params->link_range.end), |
796 GURL(params->link_target), anchor_rect, web_contents); | 779 GURL(params->link_target), anchor_rect, web_contents); |
797 #else | 780 #else |
798 SetError("Not supported on non-Views platforms."); | 781 SetError("Not supported on non-Views platforms."); |
799 #endif | 782 #endif |
800 return true; | 783 return true; |
801 } | 784 } |
802 | 785 |
803 } // namespace api | 786 } // namespace api |
804 } // namespace extensions | 787 } // namespace extensions |
OLD | NEW |