summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/do_optimistic_refresh_task.cc
blob: 654fed2e9f888b5b6a4e206cfad066d63490185a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/sync/glue/do_optimistic_refresh_task.h"

#include "chrome/browser/autofill/personal_data_manager.h"
#include "chrome/browser/browser_thread.h"

namespace browser_sync {

DoOptimisticRefreshForAutofill::DoOptimisticRefreshForAutofill(
  PersonalDataManager* pdm) : pdm_(pdm) {}

DoOptimisticRefreshForAutofill::~DoOptimisticRefreshForAutofill() {}

void DoOptimisticRefreshForAutofill::Run() {
  DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
  pdm_->Refresh();
}

}  // namespace browser_sync