• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/sync/glue/do_optimistic_refresh_task.h"
6 
7 #include "chrome/browser/autofill/personal_data_manager.h"
8 #include "content/browser/browser_thread.h"
9 
10 namespace browser_sync {
11 
DoOptimisticRefreshForAutofill(PersonalDataManager * pdm)12 DoOptimisticRefreshForAutofill::DoOptimisticRefreshForAutofill(
13   PersonalDataManager* pdm) : pdm_(pdm) {}
14 
~DoOptimisticRefreshForAutofill()15 DoOptimisticRefreshForAutofill::~DoOptimisticRefreshForAutofill() {}
16 
Run()17 void DoOptimisticRefreshForAutofill::Run() {
18   DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
19   pdm_->Refresh();
20 }
21 
22 }  // namespace browser_sync
23 
24