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

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc

Issue 999653002: [Smart Lock] Add error strings to show when the phone's software is out of date. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 IDS_EASY_UNLOCK_SETUP_INTRO_FIND_PHONE_BUTTON_LABEL)); 208 IDS_EASY_UNLOCK_SETUP_INTRO_FIND_PHONE_BUTTON_LABEL));
209 strings->SetString( 209 strings->SetString(
210 "setupIntroFindingPhoneButtonLabel", 210 "setupIntroFindingPhoneButtonLabel",
211 l10n_util::GetStringUTF16( 211 l10n_util::GetStringUTF16(
212 IDS_EASY_UNLOCK_SETUP_INTRO_FINDING_PHONE_BUTTON_LABEL)); 212 IDS_EASY_UNLOCK_SETUP_INTRO_FINDING_PHONE_BUTTON_LABEL));
213 strings->SetString( 213 strings->SetString(
214 "setupIntroRetryFindPhoneButtonLabel", 214 "setupIntroRetryFindPhoneButtonLabel",
215 l10n_util::GetStringUTF16( 215 l10n_util::GetStringUTF16(
216 IDS_EASY_UNLOCK_SETUP_INTRO_RETRY_FIND_PHONE_BUTTON_LABEL)); 216 IDS_EASY_UNLOCK_SETUP_INTRO_RETRY_FIND_PHONE_BUTTON_LABEL));
217 strings->SetString( 217 strings->SetString(
218 "setupIntroCloseFindPhoneButtonLabel",
219 l10n_util::GetStringUTF16(
220 IDS_EASY_UNLOCK_SETUP_INTRO_CLOSE_FIND_PHONE_BUTTON_LABEL));
221 strings->SetString(
218 "setupIntroHowIsThisSecureLinkText", 222 "setupIntroHowIsThisSecureLinkText",
219 l10n_util::GetStringUTF16( 223 l10n_util::GetStringUTF16(
220 IDS_EASY_UNLOCK_SETUP_INTRO_HOW_IS_THIS_SECURE_LINK_TEXT)); 224 IDS_EASY_UNLOCK_SETUP_INTRO_HOW_IS_THIS_SECURE_LINK_TEXT));
221 // Step 1.5: Phone found but is not secured with lock screen 225 // Step 1.5: Phone found but is not secured with lock screen
222 strings->SetString("setupSecurePhoneHeaderTitle", 226 strings->SetString("setupSecurePhoneHeaderTitle",
223 l10n_util::GetStringUTF16( 227 l10n_util::GetStringUTF16(
224 IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TITLE)); 228 IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TITLE));
225 strings->SetString( 229 strings->SetString(
226 "setupSecurePhoneHeaderText", 230 "setupSecurePhoneHeaderText",
227 l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TEXT, 231 l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_SECURE_PHONE_HEADER_TEXT,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // Error strings. 302 // Error strings.
299 strings->SetString( 303 strings->SetString(
300 "setupErrorBluetoothUnavailable", 304 "setupErrorBluetoothUnavailable",
301 l10n_util::GetStringFUTF16( 305 l10n_util::GetStringFUTF16(
302 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_UNAVAILBLE, device_type)); 306 IDS_EASY_UNLOCK_SETUP_ERROR_BLUETOOTH_UNAVAILBLE, device_type));
303 strings->SetString( 307 strings->SetString(
304 "setupErrorOffline", 308 "setupErrorOffline",
305 l10n_util::GetStringFUTF16( 309 l10n_util::GetStringFUTF16(
306 IDS_EASY_UNLOCK_SETUP_ERROR_OFFLINE, device_type)); 310 IDS_EASY_UNLOCK_SETUP_ERROR_OFFLINE, device_type));
307 strings->SetString( 311 strings->SetString(
312 "setupErrorRemoteSoftwareOutOfDate",
313 l10n_util::GetStringUTF16(
314 IDS_EASY_UNLOCK_SETUP_ERROR_REMOTE_SOFTWARE_OUT_OF_DATE));
315 strings->SetString(
308 "setupErrorFindingPhone", 316 "setupErrorFindingPhone",
309 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SETUP_ERROR_FINDING_PHONE)); 317 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SETUP_ERROR_FINDING_PHONE));
310 strings->SetString( 318 strings->SetString(
311 "setupErrorSyncPhoneState", 319 "setupErrorSyncPhoneState",
312 l10n_util::GetStringUTF16( 320 l10n_util::GetStringUTF16(
313 IDS_EASY_UNLOCK_SETUP_ERROR_SYNC_PHONE_STATE_FAILED)); 321 IDS_EASY_UNLOCK_SETUP_ERROR_SYNC_PHONE_STATE_FAILED));
314 strings->SetString( 322 strings->SetString(
315 "setupErrorConnectingToPhone", 323 "setupErrorConnectingToPhone",
316 l10n_util::GetStringFUTF16( 324 l10n_util::GetStringFUTF16(
317 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type)); 325 IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type));
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 807
800 Profile* profile = Profile::FromBrowserContext(browser_context()); 808 Profile* profile = Profile::FromBrowserContext(browser_context());
801 EasyUnlockService::Get(profile) 809 EasyUnlockService::Get(profile)
802 ->SetAutoPairingResult(params->result.success, error_message); 810 ->SetAutoPairingResult(params->result.success, error_message);
803 811
804 return true; 812 return true;
805 } 813 }
806 814
807 } // namespace api 815 } // namespace api
808 } // namespace extensions 816 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698