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

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

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <limits> 10 #include <limits>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void ManagePasswordsBubbleModel::SetClockForTesting( 545 void ManagePasswordsBubbleModel::SetClockForTesting(
546 std::unique_ptr<base::Clock> clock) { 546 std::unique_ptr<base::Clock> clock) {
547 interaction_keeper_->SetClockForTesting(std::move(clock)); 547 interaction_keeper_->SetClockForTesting(std::move(clock));
548 } 548 }
549 549
550 void ManagePasswordsBubbleModel::UpdatePendingStateTitle() { 550 void ManagePasswordsBubbleModel::UpdatePendingStateTitle() {
551 title_brand_link_range_ = gfx::Range(); 551 title_brand_link_range_ = gfx::Range();
552 PasswordTitleType type = 552 PasswordTitleType type =
553 state_ == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE 553 state_ == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE
554 ? PasswordTitleType::UPDATE_PASSWORD 554 ? PasswordTitleType::UPDATE_PASSWORD
555 : (pending_password_.federation_origin.unique() 555 : (pending_password_.federation_origin.opaque()
556 ? PasswordTitleType::SAVE_PASSWORD 556 ? PasswordTitleType::SAVE_PASSWORD
557 : PasswordTitleType::SAVE_ACCOUNT); 557 : PasswordTitleType::SAVE_ACCOUNT);
558 GetSavePasswordDialogTitleTextAndLinkRange( 558 GetSavePasswordDialogTitleTextAndLinkRange(
559 GetWebContents()->GetVisibleURL(), origin_, IsSmartLockUser(GetProfile()), 559 GetWebContents()->GetVisibleURL(), origin_, IsSmartLockUser(GetProfile()),
560 type, &title_, &title_brand_link_range_); 560 type, &title_, &title_brand_link_range_);
561 } 561 }
562 562
563 void ManagePasswordsBubbleModel::UpdateManageStateTitle() { 563 void ManagePasswordsBubbleModel::UpdateManageStateTitle() {
564 GetManagePasswordsDialogTitleText(GetWebContents()->GetVisibleURL(), origin_, 564 GetManagePasswordsDialogTitleText(GetWebContents()->GetVisibleURL(), origin_,
565 &title_); 565 &title_);
(...skipping 22 matching lines...) Expand all
588 return metrics_util::NO_UPDATE_SUBMISSION; 588 return metrics_util::NO_UPDATE_SUBMISSION;
589 } 589 }
590 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE) 590 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE)
591 return metrics_util::NO_UPDATE_SUBMISSION; 591 return metrics_util::NO_UPDATE_SUBMISSION;
592 if (password_overridden_) 592 if (password_overridden_)
593 return update_events[3][behavior]; 593 return update_events[3][behavior];
594 if (ShouldShowMultipleAccountUpdateUI()) 594 if (ShouldShowMultipleAccountUpdateUI())
595 return update_events[2][behavior]; 595 return update_events[2][behavior];
596 return update_events[1][behavior]; 596 return update_events[1][behavior];
597 } 597 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/page_info/page_info.cc ('k') | chrome/browser/ui/passwords/manage_passwords_view_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698