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

Side by Side Diff: chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/passwords_private/passwords_private_dele gate_impl.h" 5 #include "chrome/browser/extensions/api/passwords_private/passwords_private_dele gate_impl.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/extensions/api/passwords_private/passwords_private_even t_router.h" 10 #include "chrome/browser/extensions/api/passwords_private/passwords_private_even t_router.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 CreateUrlCollectionFromForm(*form); 180 CreateUrlCollectionFromForm(*form);
181 std::string key = 181 std::string key =
182 LoginPairToMapKey(urls.origin, base::UTF16ToUTF8(form->username_value)); 182 LoginPairToMapKey(urls.origin, base::UTF16ToUTF8(form->username_value));
183 login_pair_to_index_map_[key] = i; 183 login_pair_to_index_map_[key] = i;
184 184
185 api::passwords_private::PasswordUiEntry entry; 185 api::passwords_private::PasswordUiEntry entry;
186 entry.login_pair.urls = std::move(urls); 186 entry.login_pair.urls = std::move(urls);
187 entry.login_pair.username = base::UTF16ToUTF8(form->username_value); 187 entry.login_pair.username = base::UTF16ToUTF8(form->username_value);
188 entry.num_characters_in_password = form->password_value.length(); 188 entry.num_characters_in_password = form->password_value.length();
189 189
190 if (!form->federation_origin.unique()) { 190 if (!form->federation_origin.opaque()) {
191 entry.federation_text.reset(new std::string(l10n_util::GetStringFUTF8( 191 entry.federation_text.reset(new std::string(l10n_util::GetStringFUTF8(
192 IDS_PASSWORDS_VIA_FEDERATION, 192 IDS_PASSWORDS_VIA_FEDERATION,
193 base::UTF8ToUTF16(form->federation_origin.host())))); 193 base::UTF8ToUTF16(form->federation_origin.host()))));
194 } 194 }
195 195
196 current_entries_.push_back(std::move(entry)); 196 current_entries_.push_back(std::move(entry));
197 } 197 }
198 198
199 SendSavedPasswordsList(); 199 SendSavedPasswordsList();
200 200
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 return; 269 return;
270 270
271 is_initialized_ = true; 271 is_initialized_ = true;
272 272
273 for (const base::Closure& callback : pre_initialization_callbacks_) 273 for (const base::Closure& callback : pre_initialization_callbacks_)
274 callback.Run(); 274 callback.Run();
275 pre_initialization_callbacks_.clear(); 275 pre_initialization_callbacks_.clear();
276 } 276 }
277 277
278 } // namespace extensions 278 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/budget_service/budget_manager.cc ('k') | chrome/browser/media/android/cdm/media_drm_storage_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698