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

Side by Side Diff: chrome/browser/sync/sync_ui_util.h

Issue 2393643004: [MD Settings][People] Updates positions of username and sync status message (Closed)
Patch Set: Created 4 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 unified diff | Download patch
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 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Create status and link labels for the current status labels and link text 49 // Create status and link labels for the current status labels and link text
50 // by querying |service|. 50 // by querying |service|.
51 // |style| sets the link properties, see |StatusLabelStyle|. 51 // |style| sets the link properties, see |StatusLabelStyle|.
52 MessageType GetStatusLabels(Profile* profile, 52 MessageType GetStatusLabels(Profile* profile,
53 browser_sync::ProfileSyncService* service, 53 browser_sync::ProfileSyncService* service,
54 const SigninManagerBase& signin, 54 const SigninManagerBase& signin,
55 StatusLabelStyle style, 55 StatusLabelStyle style,
56 base::string16* status_label, 56 base::string16* status_label,
57 base::string16* link_label); 57 base::string16* link_label);
58 58
59 // Returns the username of the authenticated user or an empty string if there is
60 // no authenticated user.
61 base::string16 GetAuthenticatedUsername(const SigninManagerBase* signin);
maxbogue 2016/10/05 15:56:23 This function no longer has anything to do with sy
Moe 2016/10/05 18:52:45 Done.
62
59 // Same as above but for use specifically on the New Tab Page. 63 // Same as above but for use specifically on the New Tab Page.
60 // |status_label| may contain an HTML-formatted link. 64 // |status_label| may contain an HTML-formatted link.
61 MessageType GetStatusLabelsForNewTabPage( 65 MessageType GetStatusLabelsForNewTabPage(
62 Profile* profile, 66 Profile* profile,
63 browser_sync::ProfileSyncService* service, 67 browser_sync::ProfileSyncService* service,
64 const SigninManagerBase& signin, 68 const SigninManagerBase& signin,
65 base::string16* status_label, 69 base::string16* status_label,
66 base::string16* link_label); 70 base::string16* link_label);
67 71
68 #if !defined(OS_CHROMEOS) 72 #if !defined(OS_CHROMEOS)
(...skipping 12 matching lines...) Expand all
81 int* content_string_id, 85 int* content_string_id,
82 int* button_string_id); 86 int* button_string_id);
83 #endif 87 #endif
84 88
85 MessageType GetStatus(Profile* profile, 89 MessageType GetStatus(Profile* profile,
86 browser_sync::ProfileSyncService* service, 90 browser_sync::ProfileSyncService* service,
87 const SigninManagerBase& signin); 91 const SigninManagerBase& signin);
88 92
89 } // namespace sync_ui_util 93 } // namespace sync_ui_util
90 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 94 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698