diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 16:11:55 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 16:11:55 +0000 |
commit | 044644a494b1d3463d651de3774f1cdba7409565 (patch) | |
tree | 729ba7dff43ad8f3dc62b30b11701b8901588aed /chrome/browser/show_options_url.h | |
parent | 11b6e60b413fe6b596cbf08f78e689a360faeb61 (diff) | |
download | chromium_src-044644a494b1d3463d651de3774f1cdba7409565.zip chromium_src-044644a494b1d3463d651de3774f1cdba7409565.tar.gz chromium_src-044644a494b1d3463d651de3774f1cdba7409565.tar.bz2 |
Fixes bugs in usage of adding a new tab with a disposition of
NEW_WINDOW. Many places were leaking a Browser and preventing Chrome
from shutting down.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3655006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62408 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/show_options_url.h')
-rw-r--r-- | chrome/browser/show_options_url.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/show_options_url.h b/chrome/browser/show_options_url.h new file mode 100644 index 0000000..afa339dd --- /dev/null +++ b/chrome/browser/show_options_url.h @@ -0,0 +1,20 @@ +// Copyright (c) 2010 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. + +#ifndef CHROME_BROWSER_SHOW_OPTIONS_URL_H_ +#define CHROME_BROWSER_SHOW_OPTIONS_URL_H_ +#pragma once + +class GURL; +class Profile; + +namespace browser { + +// Opens a tab showing the specified url. This is intended for use any place +// we show a URL in the options dialogs. +void ShowOptionsURL(Profile* profile, const GURL& url); + +} // namespace browser + +#endif // CHROME_BROWSER_SHOW_OPTIONS_URL_H_ |