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

Unified Diff: chrome/browser/chromeos/customization_document.cc

Issue 224093013: Allow country-specific languages in UI list at OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 6 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
Index: chrome/browser/chromeos/customization_document.cc
diff --git a/chrome/browser/chromeos/customization_document.cc b/chrome/browser/chromeos/customization_document.cc
index 260531a7670847bfffebaeaa4f471a9df79f76cc..661553459791b55ba78d7789f315498f6fd2ff8e 100644
--- a/chrome/browser/chromeos/customization_document.cc
+++ b/chrome/browser/chromeos/customization_document.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/customization_document.h"
+#include <algorithm>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/file_util.h"
@@ -37,6 +39,7 @@
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_fetcher.h"
+#include "ui/base/l10n/l10n_util.h"
using content::BrowserThread;
@@ -304,6 +307,11 @@ void StartupCustomizationDocument::Init(
&keyboard_layout_);
configured_locales_.resize(0);
base::SplitString(initial_locale_, ',', &configured_locales_);
+
+ std::for_each(configured_locales_.begin(),
Nikita (slow) 2014/04/07 04:54:27 Can you please add a comment with an example of wh
Alexander Alekseev 2014/04/07 16:56:28 Done.
+ configured_locales_.end(),
+ l10n_util::GetCanonicalLocale);
+
// Let's always have configured_locales_.front() a valid entry.
if (configured_locales_.size() == 0)
configured_locales_.push_back(std::string());

Powered by Google App Engine
This is Rietveld 408576698