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

Unified Diff: chrome/browser/ui/android/tab_model/tab_model.cc

Issue 10701030: Refactor SyncedWindowDelegateAndroid into TabModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit fixes Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/tab_model/tab_model.cc
diff --git a/chrome/browser/ui/android/tab_model/tab_model.cc b/chrome/browser/ui/android/tab_model/tab_model.cc
new file mode 100644
index 0000000000000000000000000000000000000000..57f6fff296098a3c4cc7efd6ccc19395fb00fefc
--- /dev/null
+++ b/chrome/browser/ui/android/tab_model/tab_model.cc
@@ -0,0 +1,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());
+}
« no previous file with comments | « chrome/browser/ui/android/tab_model/tab_model.h ('k') | chrome/browser/ui/android/tab_model/tab_model_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698