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

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

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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/default_web_intent_service.cc
diff --git a/chrome/browser/intents/default_web_intent_service.cc b/chrome/browser/intents/default_web_intent_service.cc
deleted file mode 100644
index 9f369edda53b8d85d94679fc37c2a0948abf29fc..0000000000000000000000000000000000000000
--- a/chrome/browser/intents/default_web_intent_service.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 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/intents/default_web_intent_service.h"
-#include "base/string_util.h"
-
-DefaultWebIntentService::DefaultWebIntentService()
- : url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern),
- user_date(-1),
- suppression(0) {}
-
-DefaultWebIntentService::DefaultWebIntentService(
- const string16& srv_action,
- const string16& srv_type,
- const std::string& srv_service_url)
- : action(srv_action), type(srv_type),
- url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern),
- user_date(-1), suppression(0), service_url(srv_service_url) {}
-
-DefaultWebIntentService::DefaultWebIntentService(
- const string16& srv_scheme,
- const std::string& srv_service_url)
- : scheme(srv_scheme),
- url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern),
- user_date(-1), suppression(0), service_url(srv_service_url) {}
-
-DefaultWebIntentService::~DefaultWebIntentService() {}
-
-std::string DefaultWebIntentService::ToString() const {
- return "{action=" + UTF16ToASCII(action)
- + ", type=" + UTF16ToASCII(type)
- + ", service_url=" + service_url
- + ", url_pattern=" + url_pattern.GetAsString()
- + "}";
-}
-
-bool DefaultWebIntentService::operator==(
- const DefaultWebIntentService& other) const {
- return action == other.action &&
- type == other.type &&
- scheme == other.scheme &&
- url_pattern == other.url_pattern &&
- user_date == other.user_date &&
- suppression == other.suppression &&
- service_url == other.service_url;
-}
« no previous file with comments | « chrome/browser/intents/default_web_intent_service.h ('k') | chrome/browser/intents/default_web_intent_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698