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

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

Issue 1467993002: Remove ManagePasswordsUIController::NavigateToSmartLockPage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ui_controller.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/browsing_data/browsing_data_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_helper.h"
10 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 10 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 #else 303 #else
304 chrome::NavigateParams params( 304 chrome::NavigateParams params(
305 chrome::FindBrowserWithWebContents(web_contents()), 305 chrome::FindBrowserWithWebContents(web_contents()),
306 GURL(chrome::kPasswordManagerAccountDashboardURL), 306 GURL(chrome::kPasswordManagerAccountDashboardURL),
307 ui::PAGE_TRANSITION_LINK); 307 ui::PAGE_TRANSITION_LINK);
308 params.disposition = NEW_FOREGROUND_TAB; 308 params.disposition = NEW_FOREGROUND_TAB;
309 chrome::Navigate(&params); 309 chrome::Navigate(&params);
310 #endif 310 #endif
311 } 311 }
312 312
313 void ManagePasswordsUIController::NavigateToSmartLockPage() {
314 #if defined(OS_ANDROID)
315 NOTREACHED();
316 #else
317 chrome::NavigateParams params(
318 chrome::FindBrowserWithWebContents(web_contents()),
319 GURL(l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_SMART_LOCK_PAGE)),
vasilii 2015/11/23 10:25:21 Why not changing the string in password_manager_in
vabr (Chromium) 2015/11/23 11:24:47 Good point, keeping the link the same in the bubbl
320 ui::PAGE_TRANSITION_LINK);
321 params.disposition = NEW_FOREGROUND_TAB;
322 chrome::Navigate(&params);
323 #endif
324 }
325
326 void ManagePasswordsUIController::NavigateToSmartLockHelpPage() { 313 void ManagePasswordsUIController::NavigateToSmartLockHelpPage() {
327 #if defined(OS_ANDROID) 314 #if defined(OS_ANDROID)
328 NOTREACHED(); 315 NOTREACHED();
329 #else 316 #else
330 chrome::NavigateParams params( 317 chrome::NavigateParams params(
331 chrome::FindBrowserWithWebContents(web_contents()), 318 chrome::FindBrowserWithWebContents(web_contents()),
332 GURL(chrome::kSmartLockHelpPage), ui::PAGE_TRANSITION_LINK); 319 GURL(chrome::kSmartLockHelpPage), ui::PAGE_TRANSITION_LINK);
333 params.disposition = NEW_FOREGROUND_TAB; 320 params.disposition = NEW_FOREGROUND_TAB;
334 chrome::Navigate(&params); 321 chrome::Navigate(&params);
335 #endif 322 #endif
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 updater->ExecuteCommand(IDC_MANAGE_PASSWORDS_FOR_PAGE); 410 updater->ExecuteCommand(IDC_MANAGE_PASSWORDS_FOR_PAGE);
424 #endif 411 #endif
425 } 412 }
426 413
427 void ManagePasswordsUIController::WebContentsDestroyed() { 414 void ManagePasswordsUIController::WebContentsDestroyed() {
428 password_manager::PasswordStore* password_store = 415 password_manager::PasswordStore* password_store =
429 GetPasswordStore(web_contents()); 416 GetPasswordStore(web_contents());
430 if (password_store) 417 if (password_store)
431 password_store->RemoveObserver(this); 418 password_store->RemoveObserver(this);
432 } 419 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller.h ('k') | chrome/browser/ui/passwords/passwords_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698