| Index: net/dns/dns_config_service_posix.cc
|
| diff --git a/net/dns/dns_config_service_posix.cc b/net/dns/dns_config_service_posix.cc
|
| index 0644d4d42947142a935786337a291fbd7e0c3d90..2c298ddedbb8c98ce46a950929eba2616322baa5 100644
|
| --- a/net/dns/dns_config_service_posix.cc
|
| +++ b/net/dns/dns_config_service_posix.cc
|
| @@ -202,8 +202,8 @@ ConfigParsePosixResult ReadDnsConfig(DnsConfig* dns_config) {
|
| class DnsConfigServicePosix::Watcher {
|
| public:
|
| explicit Watcher(DnsConfigServicePosix* service)
|
| - : weak_factory_(this),
|
| - service_(service) {}
|
| + : service_(service),
|
| + weak_factory_(this) {}
|
| ~Watcher() {}
|
|
|
| bool Watch() {
|
| @@ -246,11 +246,12 @@ class DnsConfigServicePosix::Watcher {
|
| service_->OnHostsChanged(!error);
|
| }
|
|
|
| - base::WeakPtrFactory<Watcher> weak_factory_;
|
| DnsConfigServicePosix* service_;
|
| DnsConfigWatcher config_watcher_;
|
| base::FilePathWatcher hosts_watcher_;
|
|
|
| + base::WeakPtrFactory<Watcher> weak_factory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(Watcher);
|
| };
|
|
|
|
|