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

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

Issue 537823002: [EasyUnlock] Remove "All set!" notification strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 device_type)); 110 device_type));
111 strings->SetString( 111 strings->SetString(
112 "setupNotificationMessage", 112 "setupNotificationMessage",
113 l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_NOTIFICATION_MESSAGE, 113 l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_NOTIFICATION_MESSAGE,
114 device_type)); 114 device_type));
115 strings->SetString( 115 strings->SetString(
116 "setupNotificationButtonTitle", 116 "setupNotificationButtonTitle",
117 l10n_util::GetStringUTF16( 117 l10n_util::GetStringUTF16(
118 IDS_EASY_UNLOCK_SETUP_NOTIFICATION_BUTTON_TITLE)); 118 IDS_EASY_UNLOCK_SETUP_NOTIFICATION_BUTTON_TITLE));
119 119
120 // Success notification strings.
121 strings->SetString(
122 "successNotificationTitle",
123 l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SUCCESS_NOTIFICATION_TITLE));
124 strings->SetString(
125 "successNotificationMessage",
126 l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SUCCESS_NOTIFICATION_MESSAGE,
127 device_type));
128
129 // Chromebook added to Easy Unlock notification strings. 120 // Chromebook added to Easy Unlock notification strings.
130 strings->SetString( 121 strings->SetString(
131 "chromebookAddedNotificationTitle", 122 "chromebookAddedNotificationTitle",
132 l10n_util::GetStringUTF16( 123 l10n_util::GetStringUTF16(
133 IDS_EASY_UNLOCK_CHROMEBOOK_ADDED_NOTIFICATION_TITLE)); 124 IDS_EASY_UNLOCK_CHROMEBOOK_ADDED_NOTIFICATION_TITLE));
134 strings->SetString( 125 strings->SetString(
135 "chromebookAddedNotificationMessage", 126 "chromebookAddedNotificationMessage",
136 l10n_util::GetStringFUTF16( 127 l10n_util::GetStringFUTF16(
137 IDS_EASY_UNLOCK_CHROMEBOOK_ADDED_NOTIFICATION_MESSAGE, 128 IDS_EASY_UNLOCK_CHROMEBOOK_ADDED_NOTIFICATION_MESSAGE,
138 device_type)); 129 device_type));
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 bool EasyUnlockPrivateGetRemoteDevicesFunction::RunSync() { 532 bool EasyUnlockPrivateGetRemoteDevicesFunction::RunSync() {
542 Profile* profile = Profile::FromBrowserContext(browser_context()); 533 Profile* profile = Profile::FromBrowserContext(browser_context());
543 const base::ListValue* devices = 534 const base::ListValue* devices =
544 EasyUnlockService::Get(profile)->GetRemoteDevices(); 535 EasyUnlockService::Get(profile)->GetRemoteDevices();
545 SetResult(devices ? devices->DeepCopy() : new base::ListValue()); 536 SetResult(devices ? devices->DeepCopy() : new base::ListValue());
546 return true; 537 return true;
547 } 538 }
548 539
549 } // namespace api 540 } // namespace api
550 } // namespace extensions 541 } // 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