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

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

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Mac fixes Created 3 years, 10 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 void ManagePasswordsBubbleModel::SetClockForTesting( 468 void ManagePasswordsBubbleModel::SetClockForTesting(
469 std::unique_ptr<base::Clock> clock) { 469 std::unique_ptr<base::Clock> clock) {
470 interaction_keeper_->SetClockForTesting(std::move(clock)); 470 interaction_keeper_->SetClockForTesting(std::move(clock));
471 } 471 }
472 472
473 void ManagePasswordsBubbleModel::UpdatePendingStateTitle() { 473 void ManagePasswordsBubbleModel::UpdatePendingStateTitle() {
474 title_brand_link_range_ = gfx::Range(); 474 title_brand_link_range_ = gfx::Range();
475 PasswordTitleType type = 475 PasswordTitleType type =
476 state_ == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE 476 state_ == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE
477 ? PasswordTitleType::UPDATE_PASSWORD 477 ? PasswordTitleType::UPDATE_PASSWORD
478 : (pending_password_.federation_origin.unique() 478 : (pending_password_.federation_origin.opaque()
479 ? PasswordTitleType::SAVE_PASSWORD 479 ? PasswordTitleType::SAVE_PASSWORD
480 : PasswordTitleType::SAVE_ACCOUNT); 480 : PasswordTitleType::SAVE_ACCOUNT);
481 GetSavePasswordDialogTitleTextAndLinkRange( 481 GetSavePasswordDialogTitleTextAndLinkRange(
482 GetWebContents()->GetVisibleURL(), origin_, IsSmartLockUser(GetProfile()), 482 GetWebContents()->GetVisibleURL(), origin_, IsSmartLockUser(GetProfile()),
483 type, &title_, &title_brand_link_range_); 483 type, &title_, &title_brand_link_range_);
484 } 484 }
485 485
486 void ManagePasswordsBubbleModel::UpdateManageStateTitle() { 486 void ManagePasswordsBubbleModel::UpdateManageStateTitle() {
487 GetManagePasswordsDialogTitleText(GetWebContents()->GetVisibleURL(), origin_, 487 GetManagePasswordsDialogTitleText(GetWebContents()->GetVisibleURL(), origin_,
488 &title_); 488 &title_);
(...skipping 22 matching lines...) Expand all
511 return metrics_util::NO_UPDATE_SUBMISSION; 511 return metrics_util::NO_UPDATE_SUBMISSION;
512 } 512 }
513 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE) 513 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE)
514 return metrics_util::NO_UPDATE_SUBMISSION; 514 return metrics_util::NO_UPDATE_SUBMISSION;
515 if (password_overridden_) 515 if (password_overridden_)
516 return update_events[3][behavior]; 516 return update_events[3][behavior];
517 if (ShouldShowMultipleAccountUpdateUI()) 517 if (ShouldShowMultipleAccountUpdateUI())
518 return update_events[2][behavior]; 518 return update_events[2][behavior];
519 return update_events[1][behavior]; 519 return update_events[1][behavior];
520 } 520 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698