Chromium Code Reviews

Side by Side Diff: chrome/browser/sync/sync_status_ui_helper.cc

Issue 337034: Remove the browser_sync flag. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/sync_status_ui_helper.h ('k') | chrome/browser/views/bookmark_bar_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #if defined(BROWSER_SYNC)
6
7 #include "chrome/browser/sync/sync_status_ui_helper.h" 5 #include "chrome/browser/sync/sync_status_ui_helper.h"
8 6
9 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
10 #include "base/string_util.h" 8 #include "base/string_util.h"
11 #include "chrome/browser/sync/auth_error_state.h" 9 #include "chrome/browser/sync/auth_error_state.h"
12 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
13 #include "grit/chromium_strings.h" 11 #include "grit/chromium_strings.h"
14 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
15 13
16 // Given an authentication state, this helper function returns the appropriate 14 // Given an authentication state, this helper function returns the appropriate
(...skipping 92 matching lines...)
109 } 107 }
110 } else if (service->unrecoverable_error_detected()) { 108 } else if (service->unrecoverable_error_detected()) {
111 result_type = SYNC_ERROR; 109 result_type = SYNC_ERROR;
112 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_SETUP_ERROR)); 110 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_SETUP_ERROR));
113 } else { 111 } else {
114 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_NOT_SET_UP_INFO)); 112 status_label->assign(l10n_util::GetStringUTF16(IDS_SYNC_NOT_SET_UP_INFO));
115 } 113 }
116 } 114 }
117 return result_type; 115 return result_type;
118 } 116 }
119
120 #endif // defined(BROWSER_SYNC)
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_status_ui_helper.h ('k') | chrome/browser/views/bookmark_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine