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

Side by Side Diff: chrome/browser/intents/default_web_intent_service.cc

Issue 10855065: Add a constructor to DefaultWebIntentServices that takes only the "interesting" args. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/intents/default_web_intent_service.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/intents/default_web_intent_service.h" 5 #include "chrome/browser/intents/default_web_intent_service.h"
6 6
7 DefaultWebIntentService::DefaultWebIntentService() 7 DefaultWebIntentService::DefaultWebIntentService()
8 : url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern), 8 : url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern),
9 user_date(-1), 9 user_date(-1),
10 suppression(0) {} 10 suppression(0) {}
11 11
12 DefaultWebIntentService::DefaultWebIntentService(const string16& srv_action,
Greg Billock 2012/08/10 17:01:32 how about putting one arg per line
Steve McKay 2012/08/10 17:31:42 Done.
13 const string16& srv_type, const std::string& srv_service_url)
14 : action(srv_action), type(srv_type),
15 url_pattern(URLPattern::SCHEME_ALL, URLPattern::kAllUrlsPattern),
16 user_date(-1), suppression(0), service_url(srv_service_url) {}
17
12 DefaultWebIntentService::~DefaultWebIntentService() {} 18 DefaultWebIntentService::~DefaultWebIntentService() {}
13 19
14 bool DefaultWebIntentService::operator==( 20 bool DefaultWebIntentService::operator==(
15 const DefaultWebIntentService& other) const { 21 const DefaultWebIntentService& other) const {
16 return action == other.action && 22 return action == other.action &&
17 type == other.type && 23 type == other.type &&
18 url_pattern == other.url_pattern && 24 url_pattern == other.url_pattern &&
19 user_date == other.user_date && 25 user_date == other.user_date &&
20 suppression == other.suppression && 26 suppression == other.suppression &&
21 service_url == other.service_url; 27 service_url == other.service_url;
22 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/intents/default_web_intent_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698