 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2559323008:
    [net/predictor] Remove unsafe usage of WeakPtrFactory  (Closed)
    
  
    Issue 
            2559323008:
    [net/predictor] Remove unsafe usage of WeakPtrFactory  (Closed) 
  | Description[net/predictor] Remove unsafe usage of WeakPtrFactory
The post task to delete the predictor on the IO thread comes from the
profile destruction. Thus, callers into the predictor on the UI thread
with *valid* profiles are guaranteed to have their IO thread tasks queued
before the predictor is torn down on the IO thread.
This means we can safely use base::Unretained in place of weak pointers
in these cases.
BUG=671970
Committed: https://crrev.com/b671a5234f41f1784bd261a7c1eb6010434cd2c2
Cr-Commit-Position: refs/heads/master@{#437704}
   Patch Set 1 #
      Total comments: 2
      
     Patch Set 2 : s/we have/the caller has/g #Messages
    Total messages: 14 (8 generated)
     |