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

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

Issue 1467993002: Remove ManagePasswordsUIController::NavigateToSmartLockPage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 PasswordsModelDelegateFromWebContents(web_contents()) 308 PasswordsModelDelegateFromWebContents(web_contents())
309 ->NavigateToPasswordManagerSettingsPage(); 309 ->NavigateToPasswordManagerSettingsPage();
310 } 310 }
311 } 311 }
312 312
313 void ManagePasswordsBubbleModel::OnBrandLinkClicked() { 313 void ManagePasswordsBubbleModel::OnBrandLinkClicked() {
314 dismissal_reason_ = metrics_util::CLICKED_BRAND_NAME; 314 dismissal_reason_ = metrics_util::CLICKED_BRAND_NAME;
315 switch (GetSmartLockBrandingState(GetProfile())) { 315 switch (GetSmartLockBrandingState(GetProfile())) {
316 case password_bubble_experiment::SmartLockBranding::FULL: 316 case password_bubble_experiment::SmartLockBranding::FULL:
317 PasswordsModelDelegateFromWebContents(web_contents()) 317 PasswordsModelDelegateFromWebContents(web_contents())
318 ->NavigateToSmartLockPage(); 318 ->NavigateToExternalPasswordManager();
319 break; 319 break;
320 case password_bubble_experiment::SmartLockBranding::SAVE_BUBBLE_ONLY: 320 case password_bubble_experiment::SmartLockBranding::SAVE_BUBBLE_ONLY:
321 PasswordsModelDelegateFromWebContents(web_contents()) 321 PasswordsModelDelegateFromWebContents(web_contents())
322 ->NavigateToSmartLockHelpPage(); 322 ->NavigateToSmartLockHelpPage();
323 break; 323 break;
324 case password_bubble_experiment::SmartLockBranding::NONE: 324 case password_bubble_experiment::SmartLockBranding::NONE:
325 NOTREACHED(); 325 NOTREACHED();
326 break; 326 break;
327 } 327 }
328 } 328 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 return metrics_util::NO_UPDATE_SUBMISSION; 427 return metrics_util::NO_UPDATE_SUBMISSION;
428 } 428 }
429 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE) 429 if (state_ != password_manager::ui::PENDING_PASSWORD_UPDATE_STATE)
430 return metrics_util::NO_UPDATE_SUBMISSION; 430 return metrics_util::NO_UPDATE_SUBMISSION;
431 if (password_overridden_) 431 if (password_overridden_)
432 return update_events[3][behavior]; 432 return update_events[3][behavior];
433 if (ShouldShowMultipleAccountUpdateUI()) 433 if (ShouldShowMultipleAccountUpdateUI())
434 return update_events[2][behavior]; 434 return update_events[2][behavior];
435 return update_events[1][behavior]; 435 return update_events[1][behavior];
436 } 436 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698