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

Side by Side Diff: chrome/browser/sync/glue/session_change_processor.cc

Issue 10535077: TabContentsWrapper -> TabContents, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 6 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
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/sync/glue/session_change_processor.h" 5 #include "chrome/browser/sync/glue/session_change_processor.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 case chrome::NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED: { 185 case chrome::NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED: {
186 ExtensionTabHelper* extension_tab_helper = 186 ExtensionTabHelper* extension_tab_helper =
187 content::Source<ExtensionTabHelper>(source).ptr(); 187 content::Source<ExtensionTabHelper>(source).ptr();
188 if (!extension_tab_helper || 188 if (!extension_tab_helper ||
189 extension_tab_helper->web_contents()->GetBrowserContext() != 189 extension_tab_helper->web_contents()->GetBrowserContext() !=
190 profile_) { 190 profile_) {
191 return; 191 return;
192 } 192 }
193 if (extension_tab_helper->extension_app()) { 193 if (extension_tab_helper->extension_app()) {
194 modified_tabs.push_back(extension_tab_helper->tab_contents_wrapper()-> 194 modified_tabs.push_back(extension_tab_helper->tab_contents()->
195 synced_tab_delegate()); 195 synced_tab_delegate());
196 } 196 }
197 DVLOG(1) << "Received TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED " 197 DVLOG(1) << "Received TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED "
198 << "for profile " << profile_; 198 << "for profile " << profile_;
199 break; 199 break;
200 } 200 }
201 201
202 default: 202 default:
203 LOG(ERROR) << "Received unexpected notification of type " 203 LOG(ERROR) << "Received unexpected notification of type "
204 << type; 204 << type;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 notification_registrar_.Add(this, chrome::NOTIFICATION_FAVICON_CHANGED, 369 notification_registrar_.Add(this, chrome::NOTIFICATION_FAVICON_CHANGED,
370 content::Source<Profile>(profile_)); 370 content::Source<Profile>(profile_));
371 } 371 }
372 372
373 void SessionChangeProcessor::StopObserving() { 373 void SessionChangeProcessor::StopObserving() {
374 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 374 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
375 notification_registrar_.RemoveAll(); 375 notification_registrar_.RemoveAll();
376 } 376 }
377 377
378 } // namespace browser_sync 378 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698