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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 done_ = false; | 1007 done_ = false; |
1008 return; | 1008 return; |
1009 } | 1009 } |
1010 } | 1010 } |
1011 done_ = true; | 1011 done_ = true; |
1012 } | 1012 } |
1013 | 1013 |
1014 void AutocompleteController::StartExpireTimer() { | 1014 void AutocompleteController::StartExpireTimer() { |
1015 if (result_.HasCopiedMatches()) | 1015 if (result_.HasCopiedMatches()) |
1016 expire_timer_.Start(base::TimeDelta::FromMilliseconds(kExpireTimeMS), | 1016 expire_timer_.Start(base::TimeDelta::FromMilliseconds(kExpireTimeMS), |
1017 this, &AutocompleteController::ExpireCopiedEntries); | 1017 this, &AutocompleteController::ExpireCopiedEntries, |
| 1018 FROM_HERE); |
1018 } | 1019 } |
OLD | NEW |