Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chrome/browser/autocomplete/autocomplete.cc

Issue 7825026: Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/timer_unittest.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « base/timer_unittest.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698