blob: 71142142994ab3e39b62e841f58fdf7e638246a5 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/passwords/passwords_model_delegate.h"
#include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h"
base::WeakPtr<PasswordsModelDelegate>
PasswordsModelDelegateFromWebContents(content::WebContents* web_contents) {
DCHECK(web_contents);
return ManagePasswordsUIController::FromWebContents(web_contents)->
GetModelDelegateProxy();
}