OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/android/tab_model/tab_model.h" | 5 #include "chrome/browser/ui/android/tab_model/tab_model.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/search_engines/search_terms_data.h" | |
12 #include "chrome/browser/sync/glue/synced_window_delegate_android.h" | 11 #include "chrome/browser/sync/glue/synced_window_delegate_android.h" |
13 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" | 12 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" |
14 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
15 | 14 |
16 using content::NotificationService; | 15 using content::NotificationService; |
17 | 16 |
18 TabModel::TabModel(Profile* profile) | 17 TabModel::TabModel(Profile* profile) |
19 : profile_(profile), | 18 : profile_(profile), |
20 synced_window_delegate_( | 19 synced_window_delegate_( |
21 new browser_sync::SyncedWindowDelegateAndroid(this)) { | 20 new browser_sync::SyncedWindowDelegateAndroid(this)) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 if (is_off_the_record_) { | 88 if (is_off_the_record_) { |
90 Profile* profile = content::Source<Profile>(source).ptr(); | 89 Profile* profile = content::Source<Profile>(source).ptr(); |
91 if (profile && profile->IsOffTheRecord()) | 90 if (profile && profile->IsOffTheRecord()) |
92 profile_ = profile; | 91 profile_ = profile; |
93 } | 92 } |
94 break; | 93 break; |
95 default: | 94 default: |
96 NOTREACHED(); | 95 NOTREACHED(); |
97 } | 96 } |
98 } | 97 } |
OLD | NEW |