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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker_model.cc

Issue 9838003: Revert 128189 - [Web Intents] Inline installation of extensions in web intents picker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_model.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/intents/web_intent_picker_model.h" 5 #include "chrome/browser/ui/intents/web_intent_picker_model.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" 9 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h"
10 #include "grit/ui_resources.h" 10 #include "grit/ui_resources.h"
(...skipping 21 matching lines...) Expand all
32 std::vector<InstalledService*>::iterator iter = 32 std::vector<InstalledService*>::iterator iter =
33 installed_services_.begin() + index; 33 installed_services_.begin() + index;
34 delete *iter; 34 delete *iter;
35 installed_services_.erase(iter); 35 installed_services_.erase(iter);
36 if (observer_) 36 if (observer_)
37 observer_->OnModelChanged(this); 37 observer_->OnModelChanged(this);
38 } 38 }
39 39
40 void WebIntentPickerModel::Clear() { 40 void WebIntentPickerModel::Clear() {
41 DestroyAll(); 41 DestroyAll();
42 action_.clear();
43 mimetype_.clear();
44 inline_disposition_url_ = GURL::EmptyGURL(); 42 inline_disposition_url_ = GURL::EmptyGURL();
45 if (observer_) 43 if (observer_)
46 observer_->OnModelChanged(this); 44 observer_->OnModelChanged(this);
47 } 45 }
48 46
49 const WebIntentPickerModel::InstalledService& 47 const WebIntentPickerModel::InstalledService&
50 WebIntentPickerModel::GetInstalledServiceAt(size_t index) const { 48 WebIntentPickerModel::GetInstalledServiceAt(size_t index) const {
51 DCHECK(index < installed_services_.size()); 49 DCHECK(index < installed_services_.size());
52 return *installed_services_[index]; 50 return *installed_services_[index];
53 } 51 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 double average_rating) 141 double average_rating)
144 : title(title), 142 : title(title),
145 id(id), 143 id(id),
146 average_rating(average_rating), 144 average_rating(average_rating),
147 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( 145 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
148 IDR_DEFAULT_FAVICON)) { 146 IDR_DEFAULT_FAVICON)) {
149 } 147 }
150 148
151 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() { 149 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() {
152 } 150 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698