| Index: chrome/browser/ui/intents/web_intent_picker_factory_impl.cc
|
| diff --git a/chrome/browser/ui/intents/web_intent_picker_factory_impl.cc b/chrome/browser/ui/intents/web_intent_picker_factory_impl.cc
|
| deleted file mode 100644
|
| index cb693d290539b1833963bc17c0e4e4cf8af69af2..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/ui/intents/web_intent_picker_factory_impl.cc
|
| +++ /dev/null
|
| @@ -1,39 +0,0 @@
|
| -// Copyright (c) 2011 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/ui/intents/web_intent_picker_factory_impl.h"
|
| -
|
| -#include "base/logging.h"
|
| -#include "chrome/browser/ui/intents/web_intent_picker.h"
|
| -
|
| -WebIntentPickerFactoryImpl::WebIntentPickerFactoryImpl()
|
| - : picker_(NULL) {
|
| -}
|
| -
|
| -WebIntentPickerFactoryImpl::~WebIntentPickerFactoryImpl() {
|
| - Close();
|
| -}
|
| -
|
| -WebIntentPicker* WebIntentPickerFactoryImpl::Create(
|
| - Browser* browser,
|
| - TabContentsWrapper* wrapper,
|
| - WebIntentPickerDelegate* delegate) {
|
| - // Only allow one picker per factory.
|
| - DCHECK(picker_ == NULL);
|
| -
|
| - picker_ = WebIntentPicker::Create(browser, wrapper, delegate);
|
| - return picker_;
|
| -}
|
| -
|
| -void WebIntentPickerFactoryImpl::ClosePicker(WebIntentPicker* picker) {
|
| - DCHECK(picker == picker_);
|
| - Close();
|
| -}
|
| -
|
| -void WebIntentPickerFactoryImpl::Close() {
|
| - if (picker_) {
|
| - picker_->Close();
|
| - picker_ = NULL;
|
| - }
|
| -}
|
|
|