| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work | 5 // This code glues the RLZ library DLL with Chrome. It allows Chrome to work |
| 6 // with or without the DLL being present. If the DLL is not present the | 6 // with or without the DLL being present. If the DLL is not present the |
| 7 // functions do nothing and just return false. | 7 // functions do nothing and just return false. |
| 8 | 8 |
| 9 #include "chrome/browser/rlz/rlz.h" | 9 #include "chrome/browser/rlz/rlz.h" |
| 10 | 10 |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 base::Bind(&RLZTracker::ClearRlzStateImpl, | 574 base::Bind(&RLZTracker::ClearRlzStateImpl, |
| 575 base::Unretained(this))); | 575 base::Unretained(this))); |
| 576 return true; | 576 return true; |
| 577 } | 577 } |
| 578 #endif | 578 #endif |
| 579 | 579 |
| 580 // static | 580 // static |
| 581 void RLZTracker::CleanupRlz() { | 581 void RLZTracker::CleanupRlz() { |
| 582 GetInstance()->rlz_cache_.clear(); | 582 GetInstance()->rlz_cache_.clear(); |
| 583 GetInstance()->registrar_.RemoveAll(); | 583 GetInstance()->registrar_.RemoveAll(); |
| 584 rlz_lib::SetURLRequestContext(NULL); |
| 584 } | 585 } |
| 585 | 586 |
| 586 // static | 587 // static |
| 587 void RLZTracker::EnableZeroDelayForTesting() { | 588 void RLZTracker::EnableZeroDelayForTesting() { |
| 588 GetInstance()->min_init_delay_ = base::TimeDelta(); | 589 GetInstance()->min_init_delay_ = base::TimeDelta(); |
| 589 } | 590 } |
| OLD | NEW |