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

Unified Diff: chrome/browser/ui/webui/chromeos/register_page_ui.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/prefs/browser_prefs.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/register_page_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/register_page_ui.cc b/chrome/browser/ui/webui/chromeos/register_page_ui.cc
index 24764c2bb08c648f968c19cc7c445ed215b0d056..5b4c21b56d2c044c3af545004d42b6dff7a0472d 100644
--- a/chrome/browser/ui/webui/chromeos/register_page_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/register_page_ui.cc
@@ -219,10 +219,11 @@ void RegisterPageHandler::RegisterMessages() {
void RegisterPageHandler::HandleGetRegistrationUrl(const ListValue* args) {
#if defined(OS_CHROMEOS)
+ chromeos::StartupCustomizationDocument* customization =
+ chromeos::StartupCustomizationDocument::GetInstance();
if (WizardController::default_controller() &&
- WizardController::default_controller()->GetCustomization()) {
- const std::string& url = WizardController::default_controller()->
- GetCustomization()->registration_url();
+ customization->IsReady()) {
+ const std::string& url = customization->registration_url();
VLOG(1) << "Loading registration form with URL: " << url;
GURL register_url(url);
if (!register_url.is_valid()) {
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698