summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/android/tab_model/tab_model.cc
blob: 57f6fff296098a3c4cc7efd6ccc19395fb00fefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2012 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/ui/android/tab_model/tab_model.h"

#include "base/logging.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/notification_service.h"

#include "chrome/browser/sync/glue/synced_window_delegate.h"
#include "chrome/browser/sync/glue/synced_window_delegate_android.h"
using browser_sync::SyncedWindowDelegate;
using browser_sync::SyncedWindowDelegateAndroid;


using content::NotificationService;

TabModel::TabModel() {
}

TabModel::~TabModel() {
}

void TabModel::BroadcastSessionRestoreComplete() {
  DCHECK(GetProfile());
  NotificationService::current()->Notify(
      chrome::NOTIFICATION_SESSION_RESTORE_COMPLETE,
      content::Source<Profile>(GetProfile()),
      NotificationService::NoDetails());
}