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

Unified Diff: chrome/browser/browser_main.cc

Issue 2878056: Put back 53641 - Landing OEM customization CL for Denis... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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/browser_init.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 53758)
+++ chrome/browser/browser_main.cc (working copy)
@@ -108,7 +108,6 @@
#include "app/win_util.h"
#include "base/registry.h"
#include "base/win_util.h"
-#include "chrome/browser/browser.h"
#include "chrome/browser/browser_trial.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/net/url_fixer_upper.h"
@@ -645,42 +644,12 @@
}
}
-bool OptionallyApplyServicesCustomizationFromCommandLine(
- const CommandLine& parsed_command_line,
- BrowserInit* browser_init) {
- // For Chrome OS, we may need to fetch OEM partner's services customization
- // manifest and apply the customizations. This happens on the very first run
- // or if startup manifest is passed on the command line.
- scoped_ptr<chromeos::ServicesCustomizationDocument> customization;
- customization.reset(new chromeos::ServicesCustomizationDocument());
- bool manifest_loaded = false;
- if (parsed_command_line.HasSwitch(switches::kServicesManifest)) {
- // Load manifest from file specified by command line switch.
- FilePath manifest_path =
- parsed_command_line.GetSwitchValuePath(switches::kServicesManifest);
- manifest_loaded = customization->LoadManifestFromFile(manifest_path);
- DCHECK(manifest_loaded) << manifest_path.value();
- }
- // If manifest was loaded successfully, apply the customizations.
- if (manifest_loaded) {
- browser_init->ApplyServicesCustomization(customization.get());
- }
- return manifest_loaded;
-}
-
#else
void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line) {
// Dummy empty function for non-ChromeOS builds to avoid extra ifdefs below.
}
-bool OptionallyApplyServicesCustomizationFromCommandLine(
- const CommandLine& parsed_command_line,
- BrowserInit* browser_init) {
- // Dummy empty function for non-ChromeOS builds to avoid extra ifdefs below.
- return false;
-}
-
#endif // defined(OS_CHROMEOS)
#if defined(OS_MACOSX)
@@ -1127,12 +1096,6 @@
RegisterExtensionProtocols();
RegisterMetadataURLRequestHandler();
- // If path to partner services customization document was passed on command
- // line, apply the customizations (Chrome OS only).
- // TODO(denisromanov): Remove this when not needed for testing.
- OptionallyApplyServicesCustomizationFromCommandLine(parsed_command_line,
- &browser_init);
-
// In unittest mode, this will do nothing. In normal mode, this will create
// the global GoogleURLTracker and IntranetRedirectDetector instances, which
// will promptly go to sleep for five and seven seconds, respectively (to
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698