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/passwords_private/passwords_private_delegate_impl.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/prefs/pref_service.h"
8 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
9 #include "build/build_config.h" 8 #include "build/build_config.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h" 10 #include "chrome/browser/ui/passwords/manage_passwords_view_utils.h"
12 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
13 #include "chrome/grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
14 #include "components/password_manager/core/browser/affiliation_utils.h" 13 #include "components/password_manager/core/browser/affiliation_utils.h"
14 #include "components/prefs/pref_service.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 17
18 namespace { 18 namespace {
19 19
20 std::string LoginPairToMapKey( 20 std::string LoginPairToMapKey(
21 const std::string& origin_url, const std::string& username) { 21 const std::string& origin_url, const std::string& username) {
22 // Concatenate origin URL and username to form a unique key. 22 // Concatenate origin URL and username to form a unique key.
23 return origin_url + ',' + username; 23 return origin_url + ',' + username;
24 } 24 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 return; 252 return;
253 253
254 is_initialized_ = true; 254 is_initialized_ = true;
255 255
256 for (const base::Callback<void()>& callback : pre_initialization_callbacks_) { 256 for (const base::Callback<void()>& callback : pre_initialization_callbacks_) {
257 callback.Run(); 257 callback.Run();
258 } 258 }
259 } 259 }
260 260
261 } // namespace extensions 261 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698