summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/test_autofill_external_delegate_android.cc
blob: 4e42fdfc528b5823af7702519dc795bcb21b33f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2012 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/autofill/test_autofill_external_delegate.h"

void AutofillExternalDelegate::CreateForWebContentsAndManager(
    content::WebContents* web_contents,
    AutofillManager* autofill_manager) {
  if (FromWebContents(web_contents))
    return;

  web_contents->SetUserData(
      UserDataKey(),
      new TestAutofillExternalDelegate(web_contents, autofill_manager));
}