]> khamidou — GitHub mirrors - electron.git/commitdiff
AddUserTasks => setUserTasks
authorCheng Zhao <zcbenz@gmail.com>
Mon, 17 Nov 2014 11:32:11 +0000 (19:32 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 17 Nov 2014 11:32:11 +0000 (19:32 +0800)
atom/browser/api/atom_api_app.cc
atom/browser/browser.h
atom/browser/browser_win.cc

index d6f8072461585c3215c827d82ccc8f5d3579d7da..6b0d7e478ecb7f07801022bd0336e3373a7a28d8 100644 (file)
@@ -189,8 +189,8 @@ mate::ObjectTemplateBuilder App::GetObjectTemplateBuilder(
       .SetMethod("clearRecentDocuments",
                  base::Bind(&Browser::ClearRecentDocuments, browser))
 #if defined(OS_WIN)
-      .SetMethod("addUserTasks",
-                 base::Bind(&Browser::AddUserTasks, browser))
+      .SetMethod("setUserTasks",
+                 base::Bind(&Browser::SetUserTasks, browser))
 #endif
       .SetMethod("getDataPath", &App::GetDataPath)
       .SetMethod("resolveProxy", &App::ResolveProxy)
index a22680acdc9056f37cd52ac05bc44551d2e73d4c..d079d53a6dea4f51a3fbd56646fb3036a60dfccb 100644 (file)
@@ -96,7 +96,7 @@ class Browser : public WindowListObserver {
   };
 
   // Add a custom task to jump list.
-  void AddUserTasks(const std::vector<UserTask>& tasks);
+  void SetUserTasks(const std::vector<UserTask>& tasks);
 
   // Set the application user model ID, called when "SetName" is called.
   void SetAppUserModelID(const std::string& name);
index c8620f26578ffb098e5cf487fdfaf6c81ccd2f1e..781d905792f06494008f2898f4ed5b95313c209e 100644 (file)
@@ -71,7 +71,7 @@ void Browser::ClearRecentDocuments() {
   destinations->RemoveAllDestinations();
 }
 
-void Browser::AddUserTasks(const std::vector<UserTask>& tasks) {
+void Browser::SetUserTasks(const std::vector<UserTask>& tasks) {
   CComPtr<ICustomDestinationList> destinations;
   if (FAILED(destinations.CoCreateInstance(CLSID_DestinationList)))
     return;