diff options
Diffstat (limited to 'chrome/browser/show_options_url.cc')
-rw-r--r-- | chrome/browser/show_options_url.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/chrome/browser/show_options_url.cc b/chrome/browser/show_options_url.cc deleted file mode 100644 index 3761da4..0000000 --- a/chrome/browser/show_options_url.cc +++ /dev/null @@ -1,21 +0,0 @@ -// 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. - -#include "chrome/browser/show_options_url.h" - -#include "chrome/browser/profile.h" -#include "chrome/browser/ui/browser.h" -#include "chrome/browser/ui/browser_window.h" - -namespace browser { - -void ShowOptionsURL(Profile* profile, const GURL& url) { - // We open a new browser window so the Options dialog doesn't get lost behind - // other windows. - Browser* browser = Browser::Create(profile); - browser->AddSelectedTabWithURL(url, PageTransition::LINK); - browser->window()->Show(); -} - -} // namespace browser |