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

Unified Diff: chrome/browser/chromeos/login/helper.cc

Issue 6893052: Make customization documents singletons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments resolved Created 9 years, 8 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 | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/login_display_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/helper.cc
diff --git a/chrome/browser/chromeos/login/helper.cc b/chrome/browser/chromeos/login/helper.cc
index d91fc1262de18c564888741c8cbc6bb0349ca917..929482fa2fcd7d8077a043768fa6f670bc678984 100644
--- a/chrome/browser/chromeos/login/helper.cc
+++ b/chrome/browser/chromeos/login/helper.cc
@@ -6,7 +6,6 @@
#include "base/file_util.h"
#include "chrome/browser/chromeos/cros/network_library.h"
-#include "chrome/browser/chromeos/customization_document.h"
#include "chrome/browser/chromeos/system_access.h"
#include "chrome/browser/google/google_util.h"
#include "googleurl/src/gurl.h"
@@ -42,10 +41,6 @@ const SkColor kBackgroundEdgeColor = SK_ColorBLACK;
const char kAccountRecoveryHelpUrl[] =
"https://www.google.com/support/accounts/bin/answer.py?answer=48598";
-// Path to OEM partner startup customization manifest.
-const char kStartupCustomizationManifestPath[] =
- "/opt/oem/etc/startup_manifest.json";
-
class BackgroundPainter : public views::Painter {
public:
BackgroundPainter() {}
@@ -225,28 +220,6 @@ string16 GetCurrentNetworkName(NetworkLibrary* network_library) {
}
}
-const chromeos::StartupCustomizationDocument* LoadStartupManifest() {
- // Loading manifest causes us to do blocking IO on UI thread.
- // Temporarily allow it until we fix http://crosbug.com/11103
- base::ThreadRestrictions::ScopedAllowIO allow_io;
- FilePath startup_manifest_path(kStartupCustomizationManifestPath);
- if (file_util::PathExists(startup_manifest_path)) {
- chromeos::SystemAccess* system = chromeos::SystemAccess::GetInstance();
- scoped_ptr<chromeos::StartupCustomizationDocument> customization(
- new chromeos::StartupCustomizationDocument(system));
- bool manifest_loaded = customization->LoadManifestFromFile(
- startup_manifest_path);
- if (manifest_loaded) {
- VLOG(1) << "Startup manifest loaded successfully";
- return customization.release();
- }
- LOG(ERROR) << "Error loading startup manifest: "
- << kStartupCustomizationManifestPath;
- }
-
- return NULL;
-}
-
namespace login {
gfx::Size WideButton::GetPreferredSize() {
« no previous file with comments | « chrome/browser/chromeos/login/helper.h ('k') | chrome/browser/chromeos/login/login_display_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698