OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/data_use_measurement/chrome_data_use_ascriber_service.h " | 5 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service.h " |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h" | 10 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber.h" |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 if (old_host) { | 212 if (old_host) { |
213 content::BrowserThread::PostTask( | 213 content::BrowserThread::PostTask( |
214 content::BrowserThread::IO, FROM_HERE, | 214 content::BrowserThread::IO, FROM_HERE, |
215 base::Bind(&ChromeDataUseAscriber::RenderFrameHostChanged, | 215 base::Bind(&ChromeDataUseAscriber::RenderFrameHostChanged, |
216 base::Unretained(ascriber_), old_host->GetProcess()->GetID(), | 216 base::Unretained(ascriber_), old_host->GetProcess()->GetID(), |
217 old_host->GetRoutingID(), new_host->GetProcess()->GetID(), | 217 old_host->GetRoutingID(), new_host->GetProcess()->GetID(), |
218 new_host->GetRoutingID())); | 218 new_host->GetRoutingID())); |
219 } | 219 } |
220 } | 220 } |
221 | 221 |
222 void ChromeDataUseAscriberService::RenderFrameHostChanged( | |
RyanSturm
2016/12/16 16:26:10
You copied this method from above accidentally.
Raj
2016/12/16 19:59:10
Rmoved.
| |
223 content::RenderFrameHost* old_host, | |
224 content::RenderFrameHost* new_host) { | |
225 if (!ascriber_) | |
226 return; | |
227 | |
228 if (old_host) { | |
229 content::BrowserThread::PostTask( | |
230 content::BrowserThread::IO, FROM_HERE, | |
231 base::Bind(&ChromeDataUseAscriber::RenderFrameHostChanged, | |
232 base::Unretained(ascriber_), old_host->GetProcess()->GetID(), | |
233 old_host->GetRoutingID(), new_host->GetProcess()->GetID(), | |
234 new_host->GetRoutingID())); | |
235 } | |
236 } | |
237 | |
222 } // namespace data_use_measurement | 238 } // namespace data_use_measurement |
OLD | NEW |