summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_host.cc
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 /webkit/appcache/appcache_host.cc
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 'webkit/appcache/appcache_host.cc')
-rw-r--r--webkit/appcache/appcache_host.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/appcache/appcache_host.cc b/webkit/appcache/appcache_host.cc
index d35d61a..58212f5 100644
--- a/webkit/appcache/appcache_host.cc
+++ b/webkit/appcache/appcache_host.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.
@@ -54,12 +54,12 @@ void AppCacheHost::SelectCache(const GURL& document_url,
// if the resulting behavior is just too insane).
if (is_selection_pending()) {
service_->storage()->CancelDelegateCallbacks(this);
- pending_selected_manifest_url_ = GURL::EmptyGURL();
+ pending_selected_manifest_url_ = GURL();
pending_selected_cache_id_ = kNoCacheId;
} else if (associated_cache()) {
AssociateCache(NULL);
}
- new_master_entry_url_ = GURL::EmptyGURL();
+ new_master_entry_url_ = GURL();
// 6.9.6 The application cache selection algorithm.
// The algorithm is started here and continues in FinishCacheSelection,
@@ -93,7 +93,7 @@ void AppCacheHost::MarkAsForeignEntry(const GURL& document_url,
int64 cache_document_was_loaded_from) {
service_->storage()->MarkEntryAsForeign(
document_url, cache_document_was_loaded_from);
- SelectCache(document_url, kNoCacheId, GURL::EmptyGURL());
+ SelectCache(document_url, kNoCacheId, GURL());
}
void AppCacheHost::GetStatusWithCallback(GetStatusCallback* callback,
@@ -236,7 +236,7 @@ void AppCacheHost::LoadOrCreateGroup(const GURL& manifest_url) {
void AppCacheHost::OnGroupLoaded(AppCacheGroup* group,
const GURL& manifest_url) {
DCHECK(manifest_url == pending_selected_manifest_url_);
- pending_selected_manifest_url_ = GURL::EmptyGURL();
+ pending_selected_manifest_url_ = GURL();
FinishCacheSelection(NULL, group);
}