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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 583883003: [Password Generation] Change links in the bubble to point to the local manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac tests Created 6 years, 2 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
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/views/passwords/manage_passwords_bubble_view.h" 5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_finder.h" 8 #include "chrome/browser/ui/browser_finder.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" 10 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 620
621 parent_->set_initially_focused_view(ok_button_); 621 parent_->set_initially_focused_view(ok_button_);
622 } 622 }
623 623
624 ManagePasswordsBubbleView::SaveConfirmationView::~SaveConfirmationView() { 624 ManagePasswordsBubbleView::SaveConfirmationView::~SaveConfirmationView() {
625 } 625 }
626 626
627 void ManagePasswordsBubbleView::SaveConfirmationView::StyledLabelLinkClicked( 627 void ManagePasswordsBubbleView::SaveConfirmationView::StyledLabelLinkClicked(
628 const gfx::Range& range, int event_flags) { 628 const gfx::Range& range, int event_flags) {
629 DCHECK_EQ(range, parent_->model()->save_confirmation_link_range()); 629 DCHECK_EQ(range, parent_->model()->save_confirmation_link_range());
630 parent_->model()->OnRemoteManageLinkClicked(); 630 parent_->model()->OnManageLinkClicked();
631 parent_->Close(); 631 parent_->Close();
632 } 632 }
633 633
634 void ManagePasswordsBubbleView::SaveConfirmationView::ButtonPressed( 634 void ManagePasswordsBubbleView::SaveConfirmationView::ButtonPressed(
635 views::Button* sender, const ui::Event& event) { 635 views::Button* sender, const ui::Event& event) {
636 DCHECK_EQ(sender, ok_button_); 636 DCHECK_EQ(sender, ok_button_);
637 parent_->model()->OnOKClicked(); 637 parent_->model()->OnOKClicked();
638 parent_->Close(); 638 parent_->Close();
639 } 639 }
640 640
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 void ManagePasswordsBubbleView::WindowClosing() { 849 void ManagePasswordsBubbleView::WindowClosing() {
850 // Close() closes the window asynchronously, so by the time we reach here, 850 // Close() closes the window asynchronously, so by the time we reach here,
851 // |manage_passwords_bubble_| may have already been reset. 851 // |manage_passwords_bubble_| may have already been reset.
852 if (manage_passwords_bubble_ == this) 852 if (manage_passwords_bubble_ == this)
853 manage_passwords_bubble_ = NULL; 853 manage_passwords_bubble_ = NULL;
854 } 854 }
855 855
856 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { 856 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() {
857 return initially_focused_view_; 857 return initially_focused_view_;
858 } 858 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698