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

Unified Diff: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h

Issue 14967003: Drop more dependencies of ProfileKeyedService infrastructure on chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 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/profiles/chrome_browser_main_extra_parts_profiles.h
diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h
new file mode 100644
index 0000000000000000000000000000000000000000..1058102fbfc2a5f5ffed9ef1e5be29ffa16c19cd
--- /dev/null
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h
@@ -0,0 +1,35 @@
+// Copyright 2013 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_PROFILES_CHROME_BROWSER_MAIN_EXTRA_PARTS_PROFILES_H_
+#define CHROME_BROWSER_PROFILES_CHROME_BROWSER_MAIN_EXTRA_PARTS_PROFILES_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "chrome/browser/chrome_browser_main_extra_parts.h"
+
+class ChromeBrowserMainParts;
+
+namespace chrome {
+void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts);
+}
+
+class ChromeBrowserMainExtraPartsProfiles : public ChromeBrowserMainExtraParts {
+ public:
+ ChromeBrowserMainExtraPartsProfiles();
+ virtual ~ChromeBrowserMainExtraPartsProfiles();
+
+ // Instantiates all chrome ProfileKeyedService factories, which is especially
+ // important for services that should be created at profile creation time
+ // as compared to lazily on first access.
+ static void EnsureProfileKeyedServiceFactoriesBuilt();
+
+ // Overridden from ChromeBrowserMainExtraParts:
+ virtual void PreProfileInit() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsProfiles);
+};
+
+#endif // CHROME_BROWSER_PROFILES_CHROME_BROWSER_MAIN_EXTRA_PARTS_PROFILES_H_

Powered by Google App Engine
This is Rietveld 408576698