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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/tab_dialogs.h"
6 #include "content/public/browser/web_contents.h"
9 int kUserDataKey
; // The value is not important, the address is a key.
13 TabDialogs
* TabDialogs::FromWebContents(content::WebContents
* contents
) {
15 return static_cast<TabDialogs
*>(contents
->GetUserData(UserDataKey()));
19 const void* TabDialogs::UserDataKey() {