summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 01:22:15 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 01:22:15 +0000
commit810a52ef77564f1674a600317175743176bcc965 (patch)
treee18a35b4ef980bdb8eaad3c5812228a6e1b3ba16 /chrome/browser/notifications
parent673ccc1d607a6d7d280d89fedd3fb3bc906a7e27 (diff)
downloadchromium_src-810a52ef77564f1674a600317175743176bcc965.zip
chromium_src-810a52ef77564f1674a600317175743176bcc965.tar.gz
chromium_src-810a52ef77564f1674a600317175743176bcc965.tar.bz2
Remove most uses of EmptyString(), EmptyWString(), EmptyString16(), and EmptyGURL(), since the code in question can just use the default constructor.
BUG=none TEST=none Review URL: http://codereview.chromium.org/517054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications')
-rw-r--r--chrome/browser/notifications/desktop_notification_service.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index 8600de0..1239a55 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -47,14 +47,14 @@ static string16 CreateDataUrl(const GURL& icon_url, const string16& title,
if (template_html.empty()) {
NOTREACHED() << "unable to load template. ID: " << IDR_NOTIFICATION_HTML;
- return EmptyString16();
+ return string16();
}
std::vector<string16> subst;
if (icon_url.is_valid())
subst.push_back(UTF8ToUTF16(icon_url.spec()));
else
- subst.push_back(EmptyString16());
+ subst.push_back(string16());
subst.push_back(UTF8ToUTF16(EscapeForHTML(UTF16ToUTF8(title))));
subst.push_back(UTF8ToUTF16(EscapeForHTML(UTF16ToUTF8(body))));
@@ -62,7 +62,7 @@ static string16 CreateDataUrl(const GURL& icon_url, const string16& title,
if (icon_url.is_valid()) {
subst.push_back(ASCIIToUTF16("margin-left:56px;"));
} else {
- subst.push_back(EmptyString16());
+ subst.push_back(string16());
}
string16 format_string = ASCIIToUTF16("data:text/html;charset=utf-8,"