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

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

Issue 9763001: [Web Intents] Inline installation of extensions in web intents picker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac fix 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();
42 inline_disposition_url_ = GURL::EmptyGURL(); 44 inline_disposition_url_ = GURL::EmptyGURL();
43 if (observer_) 45 if (observer_)
44 observer_->OnModelChanged(this); 46 observer_->OnModelChanged(this);
45 } 47 }
46 48
47 const WebIntentPickerModel::InstalledService& 49 const WebIntentPickerModel::InstalledService&
48 WebIntentPickerModel::GetInstalledServiceAt(size_t index) const { 50 WebIntentPickerModel::GetInstalledServiceAt(size_t index) const {
49 DCHECK(index < installed_services_.size()); 51 DCHECK(index < installed_services_.size());
50 return *installed_services_[index]; 52 return *installed_services_[index];
51 } 53 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 double average_rating) 143 double average_rating)
142 : title(title), 144 : title(title),
143 id(id), 145 id(id),
144 average_rating(average_rating), 146 average_rating(average_rating),
145 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( 147 icon(ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
146 IDR_DEFAULT_FAVICON)) { 148 IDR_DEFAULT_FAVICON)) {
147 } 149 }
148 150
149 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() { 151 WebIntentPickerModel::SuggestedExtension::~SuggestedExtension() {
150 } 152 }
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