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

Unified Diff: chrome/browser/views/toolbar_view.cc

Issue 350005: Use the original profile to get the sync service when building the app menu.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_view.cc
===================================================================
--- chrome/browser/views/toolbar_view.cc (revision 30303)
+++ chrome/browser/views/toolbar_view.cc (working copy)
@@ -1179,7 +1179,8 @@
// TODO(timsteele): Need a ui helper method to just get the type without
// needing labels.
SyncStatusUIHelper::MessageType type = SyncStatusUIHelper::GetLabels(
- browser_->profile()->GetProfileSyncService(), &label, &link);
+ browser_->profile()->GetOriginalProfile()->GetProfileSyncService(),
+ &label, &link);
label = type == SyncStatusUIHelper::SYNCED ?
l10n_util::GetStringUTF16(IDS_SYNC_MENU_BOOKMARKS_SYNCED_LABEL) :
type == SyncStatusUIHelper::SYNC_ERROR ?
« no previous file with comments | « chrome/browser/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698