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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_view_utils.h

Issue 1181623004: [Password Manager] Replace "this site" in save password prompt with password's origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just a code rebase. Created 5 years, 5 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 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
7 7
8 #include "base/strings/string16.h"
9
8 namespace gfx { 10 namespace gfx {
9 class ImageSkia; 11 class ImageSkia;
12 class Range;
10 } // namespace gfx 13 } // namespace gfx
11 14
15 class GURL;
16
12 // The desired width and height in pixels for an account avatar. 17 // The desired width and height in pixels for an account avatar.
13 extern const int kAvatarImageSize; 18 extern const int kAvatarImageSize;
14 19
15 // Crops and scales |image_skia| to the desired size for an account avatar. 20 // Crops and scales |image_skia| to the desired size for an account avatar.
16 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia); 21 gfx::ImageSkia ScaleImageForAccountAvatar(gfx::ImageSkia image_skia);
22
23 // This function sets formatted |tilte| in the "Save Password" dialog bubble. If
palmer 2015/06/26 17:59:58 Typo: |title| Nit: Wording. Try something like: "
Pritam Nikam 2015/06/27 10:10:03 Done.
24 // the registry controlled domain of |user_visible_url| (i.e. the one seen in
25 // the omnibox) differs from the registry controlled domain of
26 // |form_origin_url|, sets resource string |IDS_SAVE_PASSWORD_TITLE| as the
27 // |title| so that it replaces "this site" in title text with output of
28 // |FormatUrlForSecurityDisplay(form_origin_url)|; otherwise sets resource
palmer 2015/06/26 17:59:58 Nit: I'd start a new sentence here; and, you can b
Pritam Nikam 2015/06/27 10:10:03 Done.
29 // string |IDS_SAVE_PASSWORD| as the |title| having "this site". If
30 // |is_smartlock_branding_enabled| is true sets the |title_link_range| for the
31 // "Google Smart Lock" text range to be set visibly as a hyperlink in the dialog
32 // bubble.
33 void GetSavePasswordDialogTitleTextAndLinkRange(
34 const GURL& user_visible_url,
35 const GURL& form_origin_url,
36 bool is_smartlock_branding_enabled,
37 base::string16* title,
38 gfx::Range* title_link_range);
39
17 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_ 40 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_VIEW_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698