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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10458018: This CL does the following: (1) Pass the max_length attribute to the password generator; (2) Update… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a bug in Windows UI. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index eff052e4305da3b3e31d03d0ebde8abca37316e3..3bc3828974a9c8037ae629c1620b8de30f89339a 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2403,7 +2403,8 @@ void BrowserView::ShowAvatarBubbleFromAvatarButton() {
button->ShowAvatarBubble();
}
-void BrowserView::ShowPasswordGenerationBubble(const gfx::Rect& rect) {
+void BrowserView::ShowPasswordGenerationBubble(const gfx::Rect& rect,
+ int max_length) {
// Create a rect in the content bounds that the bubble will point to.
gfx::Point origin(rect.origin());
views::View::ConvertPointToScreen(GetTabContentsContainerView(), &origin);
@@ -2416,6 +2417,7 @@ void BrowserView::ShowPasswordGenerationBubble(const gfx::Rect& rect) {
PasswordGenerationBubbleView* bubble =
new PasswordGenerationBubbleView(bounds,
+ max_length,
this,
web_contents->GetRenderViewHost());
views::BubbleDelegateView::CreateBubble(bubble);

Powered by Google App Engine
This is Rietveld 408576698