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

Side by Side Diff: chrome/browser/ui/android/tab_model/tab_model_android.cc

Issue 10701030: Refactor SyncedWindowDelegateAndroid into TabModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made some changes from a downstream review 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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/ui/android/tab_model/tab_model_android.h"
6
7 #include "chrome/browser/sync/glue/synced_window_delegate_android.h"
8 #include "chrome/common/chrome_notification_types.h"
9 #include "content/public/browser/notification_service.h"
10
11 using content::NotificationService;
12
13 TabModelAndroid::TabModelAndroid()
sky 2012/07/17 00:32:12 The order of definitions should match declarations
David Trainor- moved to gerrit 2012/07/18 23:59:04 Done.
14 : synced_window_delegate_(new browser_sync::SyncedWindowDelegateAndroid(
15 this)) { }
sky 2012/07/17 00:32:12 { } -> {} every where.
David Trainor- moved to gerrit 2012/07/18 23:59:04 Done.
16
17 TabModelAndroid::~TabModelAndroid() { }
18
19 void TabModelAndroid::BroadcastAllTabsLoaded() {
20 NotificationService::current()->Notify(
21 chrome::NOTIFICATION_ALL_TABS_LOADED,
22 NotificationService::AllSources(),
23 NotificationService::NoDetails());
24 }
25
26 browser_sync::SyncedWindowDelegate*
27 TabModelAndroid::synced_window_delegate() const {
28 return synced_window_delegate_.get();
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698