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

Unified Diff: chrome/installer/util/auto_launch_util.h

Issue 8729009: Implement an AutoLaunch experiment for Chrome for certain brand codes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/installer/util/auto_launch_util.h
===================================================================
--- chrome/installer/util/auto_launch_util.h (revision 0)
+++ chrome/installer/util/auto_launch_util.h (revision 0)
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_
+#define CHROME_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_
+#pragma once
+
+class FilePath;
+
+// A namespace containing the platform specific implementation of setting Chrome
+// to launch on computer startup.
+namespace auto_launch_util {
+
+// Returns whether the Chrome executable specified in |executable| is set to
+// auto-launch at computer startup. NOTE: |executable| is optional and should be
+// blank in most cases (as it will default to the current executable).
+bool WillLaunchAtLogin(const FilePath& executable);
+
+// Configures whether chrome.exe in |application_path| (or the directory of the
+// current executable) should auto-launch at computer startup.
+// NOTE: |application_path| is optional and should be blank in most cases (will
+// default to the chrome application path), but can be overridden if needed. If
grt (UTC plus 2) 2011/12/13 17:08:55 i find this NOTE confusing. |application_path| ma
+// |auto_launch| is true, then it will auto-launch, otherwise it will be
+// configured not to.
+void SetWillLaunchAtLogin(bool auto_launch, const FilePath& application_path);
+
+} // namespace auto_launch_util
+
+#endif // CHROME_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_
Property changes on: chrome\installer\util\auto_launch_util.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698