diff options
author | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 21:15:33 +0000 |
---|---|---|
committer | munjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 21:15:33 +0000 |
commit | 7fd41a837aef6af92487dccfcc2819e3de8c6e41 (patch) | |
tree | e5e9cd67fd3b3b828002cc345a2632b4e00688d0 /chrome/browser/views/bookmark_manager_view.cc | |
parent | d37e8c5be9976f051c50529eb39a29d56cfd0dc1 (diff) | |
download | chromium_src-7fd41a837aef6af92487dccfcc2819e3de8c6e41.zip chromium_src-7fd41a837aef6af92487dccfcc2819e3de8c6e41.tar.gz chromium_src-7fd41a837aef6af92487dccfcc2819e3de8c6e41.tar.bz2 |
Part 2 of string cleanup in Sync:
- Get rid of sync_char16 from syncapi
- Use wstring for title in syncapi since that gets converted to wstring
later on anyway.
- Use GURL for urls in syncapi
- Return const string references from syncapi instead of pointers to
C-style strings.
- Make appropriate changes to calling code.
BUG=26342
TEST=Already exist.
Review URL: http://codereview.chromium.org/362019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_manager_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_manager_view.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.cc b/chrome/browser/views/bookmark_manager_view.cc index 978eb43..3d15a30 100644 --- a/chrome/browser/views/bookmark_manager_view.cc +++ b/chrome/browser/views/bookmark_manager_view.cc @@ -822,8 +822,7 @@ void BookmarkManagerView::UpdateSyncStatus() { &status_label, &link_label) == SyncStatusUIHelper::SYNCED; if (sync_service_->HasSyncSetupCompleted()) { - std::wstring username = UTF16ToWide( - sync_service_->GetAuthenticatedUsername()); + std::wstring username = sync_service_->GetAuthenticatedUsername(); status_label = l10n_util::GetStringF(IDS_SYNC_NTP_SYNCED_TO, username); } else if (!sync_service_->SetupInProgress() && !synced) { status_label = l10n_util::GetString(IDS_SYNC_START_SYNC_BUTTON_LABEL); |