summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/dns_master.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 15:26:54 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 15:26:54 +0000
commit33d710276f0195db9c56cb5d785f54eb7c371556 (patch)
tree9673bdabc810a801c95cb64994d08d76712fd82f /chrome/browser/net/dns_master.cc
parent96c247116d36960569f32ceac7433c7c3754facb (diff)
downloadchromium_src-33d710276f0195db9c56cb5d785f54eb7c371556.zip
chromium_src-33d710276f0195db9c56cb5d785f54eb7c371556.tar.gz
chromium_src-33d710276f0195db9c56cb5d785f54eb7c371556.tar.bz2
Fix MSVC warning.
TBR=maruel Review URL: http://codereview.chromium.org/18594 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/dns_master.cc')
-rw-r--r--chrome/browser/net/dns_master.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/net/dns_master.cc b/chrome/browser/net/dns_master.cc
index c170e79..7a88b138 100644
--- a/chrome/browser/net/dns_master.cc
+++ b/chrome/browser/net/dns_master.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <sstream>
+#include "base/compiler_specific.h"
#include "base/histogram.h"
#include "base/lock.h"
#include "base/revocable_store.h"
@@ -27,7 +28,8 @@ class DnsMaster::LookupRequest : RevocableStore::Revocable {
public:
LookupRequest(DnsMaster* master, const std::string& hostname)
: RevocableStore::Revocable(&master->pending_callbacks_),
- callback_(this, &LookupRequest::OnLookupFinished),
+ ALLOW_THIS_IN_INITIALIZER_LIST(callback_(
+ this, &LookupRequest::OnLookupFinished)),
hostname_(hostname),
master_(master) {
}