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

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

Issue 10834174: intents: Constantify some getter accessors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mimetype -> type Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/intents/web_intent_picker_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/intents/web_intent_picker_controller.cc
diff --git a/chrome/browser/ui/intents/web_intent_picker_controller.cc b/chrome/browser/ui/intents/web_intent_picker_controller.cc
index 38eb5f2e0019f76a62e0aa1adc8e8e561609b313..d9e862c9953f71094ea7932334b6a99e0536bbdc 100644
--- a/chrome/browser/ui/intents/web_intent_picker_controller.cc
+++ b/chrome/browser/ui/intents/web_intent_picker_controller.cc
@@ -219,7 +219,7 @@ void WebIntentPickerController::ShowDialog(const string16& action,
picker_model_->Clear();
picker_model_->set_action(action);
- picker_model_->set_mimetype(type);
+ picker_model_->set_type(type);
// If the intent is explicit, skip showing the picker.
if (intents_dispatcher_) {
@@ -382,7 +382,7 @@ void WebIntentPickerController::OnSuggestionsLinkClicked() {
browser::FindBrowserWithWebContents(tab_contents_->web_contents());
GURL query_url = extension_urls::GetWebstoreIntentQueryURL(
UTF16ToUTF8(picker_model_->action()),
- UTF16ToUTF8(picker_model_->mimetype()));
+ UTF16ToUTF8(picker_model_->type()));
chrome::NavigateParams params(browser, query_url,
content::PAGE_TRANSITION_AUTO_BOOKMARK);
params.disposition = NEW_FOREGROUND_TAB;
@@ -422,7 +422,7 @@ void WebIntentPickerController::OnExtensionInstallSuccess(
pending_async_count_++;
GetWebIntentsRegistry(tab_contents_)->GetIntentServicesForExtensionFilter(
picker_model_->action(),
- picker_model_->mimetype(),
+ picker_model_->type(),
id,
base::Bind(
&WebIntentPickerController::OnExtensionInstallServiceAvailable,
« no previous file with comments | « no previous file | chrome/browser/ui/intents/web_intent_picker_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698