#include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
namespace chrome {
ScopedTabbedBrowserDisplayer::ScopedTabbedBrowserDisplayer(
Profile* profile,
HostDesktopType type) {
browser_ = FindTabbedBrowser(profile, false, type);
if (!browser_)
browser_ = new Browser(Browser::CreateParams(profile, type));
}
ScopedTabbedBrowserDisplayer::~ScopedTabbedBrowserDisplayer() {
browser_->window()->Show();
}
}