| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autocomplete/autocomplete.h" | 5 #include "chrome/browser/autocomplete/autocomplete.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 if (!(*i)->done()) { | 1011 if (!(*i)->done()) { |
| 1012 done_ = false; | 1012 done_ = false; |
| 1013 return; | 1013 return; |
| 1014 } | 1014 } |
| 1015 } | 1015 } |
| 1016 done_ = true; | 1016 done_ = true; |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 void AutocompleteController::StartExpireTimer() { | 1019 void AutocompleteController::StartExpireTimer() { |
| 1020 if (result_.HasCopiedMatches()) | 1020 if (result_.HasCopiedMatches()) |
| 1021 expire_timer_.Start(FROM_HERE, | 1021 expire_timer_.Start(base::TimeDelta::FromMilliseconds(kExpireTimeMS), |
| 1022 base::TimeDelta::FromMilliseconds(kExpireTimeMS), | |
| 1023 this, &AutocompleteController::ExpireCopiedEntries); | 1022 this, &AutocompleteController::ExpireCopiedEntries); |
| 1024 } | 1023 } |
| OLD | NEW |