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

Unified Diff: chrome/browser/ui/webui/chromeos/register_page_ui.cc

Issue 6902107: Merge 82987, 83304 - make sure that OEM tab is shown even if first login is Guest (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: 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
===================================================================
--- chrome/browser/ui/webui/chromeos/register_page_ui.cc (revision 83304)
+++ chrome/browser/ui/webui/chromeos/register_page_ui.cc (working copy)
@@ -219,10 +219,11 @@
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