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

Unified Diff: chrome/browser/shell_integration_win.h

Issue 2633743002: Add GetIsPinnedToTaskbarState() (Closed)
Patch Set: Created 3 years, 11 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/shell_integration_win.h
diff --git a/chrome/browser/shell_integration_win.h b/chrome/browser/shell_integration_win.h
index 3d81886fcd413aad42c34563885d70952cb7025f..8e3c46665fe82ab46098787e9d0c9556b4a5d01e 100644
--- a/chrome/browser/shell_integration_win.h
+++ b/chrome/browser/shell_integration_win.h
@@ -57,9 +57,16 @@ base::string16 GetAppModelIdForProfile(const base::string16& app_name,
// calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name.
base::string16 GetChromiumModelIdForProfile(const base::FilePath& profile_path);
-// Records the pinned state of the current executable into a histogram. Must be
-// called on the IO thread.
-void RecordIsPinnedToTaskbarHistogram();
+// Returns the taskbar pin state of Chrome via the IsPinnedToTaskbarCallback.
+// The first bool is true if the state could be calculated, and the second bool
+// is true if Chrome is pinned to the taskbar.
+// The ConnectionErrorCallback is called instead if something wrong happened
+// with the connection to the remote process.
+using ConnectionErrorCallback = base::Closure;
+using IsPinnedToTaskbarCallback = base::Callback<void(bool, bool)>;
+void GetIsPinnedToTaskbarState(
+ const ConnectionErrorCallback& on_error_callback,
+ const IsPinnedToTaskbarCallback& result_callback);
// Migrates existing chrome taskbar pins by tagging them with correct app id.
// see http://crbug.com/28104
« no previous file with comments | « chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698