Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Unified Diff: chrome/browser/ui/intents/web_intent_picker_factory_impl.cc

Issue 9148032: [Web Intents] Refactor picker to use WebIntentPickerModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: groby's fix Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
- }
-}
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_factory_impl.h ('k') | chrome/browser/ui/intents/web_intent_picker_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698