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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/passwords/manage_passwords_bubble_model.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
6 6
7 #include "base/strings/string_split.h" 7 #include "base/strings/string_split.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/browser/password_manager/password_store_factory.h" 9 #include "chrome/browser/password_manager/password_store_factory.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_finder.h" 11 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 12 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
13 #include "chrome/grit/generated_resources.h"
13 #include "components/password_manager/core/browser/password_store.h" 14 #include "components/password_manager/core/browser/password_store.h"
14 #include "components/password_manager/core/common/password_manager_ui.h" 15 #include "components/password_manager/core/common/password_manager_ui.h"
15 #include "grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 17
18 using autofill::PasswordFormMap; 18 using autofill::PasswordFormMap;
19 using content::WebContents; 19 using content::WebContents;
20 namespace metrics_util = password_manager::metrics_util; 20 namespace metrics_util = password_manager::metrics_util;
21 21
22 namespace { 22 namespace {
23 23
24 void SetupLinkifiedText(const base::string16& string_with_separator, 24 void SetupLinkifiedText(const base::string16& string_with_separator,
25 base::string16* text, 25 base::string16* text,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 Profile::FromBrowserContext(web_contents()->GetBrowserContext()); 172 Profile::FromBrowserContext(web_contents()->GetBrowserContext());
173 password_manager::PasswordStore* password_store = 173 password_manager::PasswordStore* password_store =
174 PasswordStoreFactory::GetForProfile(profile, Profile::EXPLICIT_ACCESS) 174 PasswordStoreFactory::GetForProfile(profile, Profile::EXPLICIT_ACCESS)
175 .get(); 175 .get();
176 DCHECK(password_store); 176 DCHECK(password_store);
177 if (action == REMOVE_PASSWORD) 177 if (action == REMOVE_PASSWORD)
178 password_store->RemoveLogin(password_form); 178 password_store->RemoveLogin(password_form);
179 else 179 else
180 password_store->AddLogin(password_form); 180 password_store->AddLogin(password_form);
181 } 181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698