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

Unified Diff: chrome/browser/extensions/default_apps.h

Issue 8245018: Remove race condition when installing default apps into a new profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Addressing review comments Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/default_apps.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/default_apps.h
===================================================================
--- chrome/browser/extensions/default_apps.h (revision 0)
+++ chrome/browser/extensions/default_apps.h (revision 0)
@@ -0,0 +1,36 @@
+// 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_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
+#define CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+class PrefService;
+class Profile;
+
+// Functions and types related to installing default apps.
+namespace default_apps {
+
+// These enum values are persisted in the user preferences, so they should not
+// be changed.
+enum InstallState {
+ kUnknown,
+ kAlwaysProvideDefaultApps,
+ kNeverProvideDefaultApps
+};
+
+// Register preference properties used by default apps to maintain
+// install state.
+void RegisterUserPrefs(PrefService* prefs);
+
+// Determines whether default apps should be installed into the specified
+// profile. If true, then an instance of ExternalExtensionProviderImpl
+// specific to default apps should be added to the external providers list.
+bool ShouldInstallInProfile(Profile* profile);
+
+} // namespace default_apps
+
+#endif // CHROME_BROWSER_EXTENSIONS_DEFAULT_APPS_H_
Property changes on: chrome\browser\extensions\default_apps.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | chrome/browser/extensions/default_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698