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

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

Issue 9456031: Remove PSS::ShowLoginDialog() and obsolete IDC_SYNC_BOOKMARKS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review feedback. Created 8 years, 10 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('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) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service, 60 void GetStatusLabelsForSyncGlobalError(ProfileSyncService* service,
61 string16* menu_item_label, 61 string16* menu_item_label,
62 string16* bubble_message, 62 string16* bubble_message,
63 string16* bubble_accept_label); 63 string16* bubble_accept_label);
64 64
65 MessageType GetStatus(ProfileSyncService* service); 65 MessageType GetStatus(ProfileSyncService* service);
66 66
67 // Returns a string with the synchronization status. 67 // Returns a string with the synchronization status.
68 string16 GetSyncMenuLabel(ProfileSyncService* service); 68 string16 GetSyncMenuLabel(ProfileSyncService* service);
69 69
70 // Open the appropriate sync dialog for the given profile (which can be
71 // incognito). |browser| is the browser window that should be used if the UI
72 // is in-window (i.e., WebUI). |code| should be one of the START_FROM_* codes.
73 void OpenSyncMyBookmarksDialog(Profile* profile,
74 Browser* browser,
75 ProfileSyncService::SyncEventCodes code);
76
77 void AddBoolSyncDetail(base::ListValue* details, 70 void AddBoolSyncDetail(base::ListValue* details,
78 const std::string& stat_name, 71 const std::string& stat_name,
79 bool stat_value); 72 bool stat_value);
80 73
81 // |service| can be NULL. 74 // |service| can be NULL.
82 void ConstructAboutInformation(ProfileSyncService* service, 75 void ConstructAboutInformation(ProfileSyncService* service,
83 DictionaryValue* strings); 76 DictionaryValue* strings);
84 77
85 void AddIntSyncDetail(base::ListValue* details, 78 void AddIntSyncDetail(base::ListValue* details,
86 const std::string& stat_name, 79 const std::string& stat_name,
87 int64 stat_value); 80 int64 stat_value);
88 81
89 void AddStringSyncDetails(ListValue* details, const std::string& stat_name, 82 void AddStringSyncDetails(ListValue* details, const std::string& stat_name,
90 const std::string& stat_value); 83 const std::string& stat_value);
91 84
92 // Returns a string describing the chrome version environment. Version format: 85 // Returns a string describing the chrome version environment. Version format:
93 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel"> 86 // <Build Info> <OS> <Version number> (<Last change>)<channel or "-devel">
94 // If version information is unavailable, returns "invalid." 87 // If version information is unavailable, returns "invalid."
95 // TODO(zea): this approximately matches MakeUserAgentForSyncApi in 88 // TODO(zea): this approximately matches MakeUserAgentForSyncApi in
96 // sync_backend_host.cc. Unify the two if possible. 89 // sync_backend_host.cc. Unify the two if possible.
97 std::string GetVersionString(); 90 std::string GetVersionString();
98 91
99 } // namespace sync_ui_util 92 } // namespace sync_ui_util
100 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_ 93 #endif // CHROME_BROWSER_SYNC_SYNC_UI_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698