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

Unified Diff: chrome/browser/ui/webui/options2/browser_options_handler2.h

Issue 10139019: [webui settings] send user profiles info earlier during load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make return type scoped_ptr Created 8 years, 8 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
Index: chrome/browser/ui/webui/options2/browser_options_handler2.h
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler2.h b/chrome/browser/ui/webui/options2/browser_options_handler2.h
index cd8c195fc86ccc914fc37c0b35681c37f5983b47..fe5510cbbde1309923e488be9da752a9b711a6c6 100644
--- a/chrome/browser/ui/webui/options2/browser_options_handler2.h
+++ b/chrome/browser/ui/webui/options2/browser_options_handler2.h
@@ -125,14 +125,16 @@ class BrowserOptionsHandler
// Loads the possible default search engine list and reports it to the WebUI.
void AddTemplateUrlServiceObserver();
- // Sends an array of Profile objects to javascript.
- // Each object is of the form:
+ // Creates a list of dictionaries where each dictionary is of the form:
// profileInfo = {
// name: "Profile Name",
// iconURL: "chrome://path/to/icon/image",
// filePath: "/path/to/profile/data/on/disk",
// isCurrentProfile: false
// };
+ scoped_ptr<ListValue> GetProfilesInfoList();
+
+ // Sends an array of Profile objects to javascript.
void SendProfilesInfo();
// Asynchronously opens a new browser window to create a new profile.
@@ -271,7 +273,7 @@ class BrowserOptionsHandler
// Returns a newly created dictionary with a number of properties that
// correspond to the status of sync.
- DictionaryValue* GetSyncStateDictionary();
+ scoped_ptr<DictionaryValue> GetSyncStateDictionary();
scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_;
« no previous file with comments | « chrome/browser/resources/options2/browser_options.js ('k') | chrome/browser/ui/webui/options2/browser_options_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698