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

Unified Diff: chrome/browser/intents/web_intents_registry.cc

Issue 10824212: Add support for unregistering web intents default by service_url. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rename to use "ServiceDefaults" as the method subject. 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
Index: chrome/browser/intents/web_intents_registry.cc
diff --git a/chrome/browser/intents/web_intents_registry.cc b/chrome/browser/intents/web_intents_registry.cc
index 856fe3c991a9516a01d0de98a0be813d8afc9964..7afbd1cafba7c93c8dddffe0c5ce40742ef8004b 100644
--- a/chrome/browser/intents/web_intents_registry.cc
+++ b/chrome/browser/intents/web_intents_registry.cc
@@ -451,6 +451,11 @@ void WebIntentsRegistry::UnregisterDefaultIntentService(
wds_->RemoveDefaultWebIntentService(default_service);
}
+void WebIntentsRegistry::UnregisterServiceDefaults(const GURL& service_url) {
+ DCHECK(wds_.get());
+ wds_->RemoveWebIntentServiceDefaults(service_url);
+}
+
void WebIntentsRegistry::GetDefaultIntentService(
const string16& action,
const string16& type,
« no previous file with comments | « chrome/browser/intents/web_intents_registry.h ('k') | chrome/browser/intents/web_intents_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698