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

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

Issue 9317002: Make the auto-launch experiment profile-aware. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressing review comments 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 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 119922)
+++ chrome/installer/util/auto_launch_util.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -6,6 +6,8 @@
#define CHROME_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_
#pragma once
+#include "base/string16.h"
+
class FilePath;
// A namespace containing the platform specific implementation of setting Chrome
@@ -15,16 +17,23 @@
// Returns whether the Chrome executable specified in |application_path| is set
// to auto-launch at computer startup. NOTE: |application_path| is optional and
// should be blank in most cases (as it will default to the application path of
-// the current executable).
-bool WillLaunchAtLogin(const FilePath& application_path);
+// the current executable). |profile_directory| is the name of the directory
+// (leaf, not the full path) that contains the profile that should be opened at
+// computer startup.
+bool WillLaunchAtLogin(const FilePath& application_path,
+ const string16& profile_directory);
// Configures whether the Chrome executable should auto-launch at computer
// startup. |application_path| is needed when |auto_launch| is true AND when
// the caller is not the process being set to auto-launch, ie. the installer.
// This is because |application_path|, if left blank, defaults to the
// application path of the current executable. If |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);
+// will auto-launch, otherwise it will be configured not to. |profile_directory|
+// is the name of the directory (leaf, not the full path) that contains the
+// profile that should be opened at computer startup.
+void SetWillLaunchAtLogin(bool auto_launch,
+ const FilePath& application_path,
+ const string16& profile_directory);
} // namespace auto_launch_util

Powered by Google App Engine
This is Rietveld 408576698