diff options
author | glotov@chromium.org <glotov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 14:28:01 +0000 |
---|---|---|
committer | glotov@chromium.org <glotov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 14:28:01 +0000 |
commit | 9f0a5dfa53a2a669df977cfba0a61d80891657aa (patch) | |
tree | 3c06e957e2e91e0de46cb875e43b01c2b2fc90e3 /chrome/browser/chromeos/customization_document.cc | |
parent | a93f6678ef2234759454a9b4c1428228bf10d27f (diff) | |
download | chromium_src-9f0a5dfa53a2a669df977cfba0a61d80891657aa.zip chromium_src-9f0a5dfa53a2a669df977cfba0a61d80891657aa.tar.gz chromium_src-9f0a5dfa53a2a669df977cfba0a61d80891657aa.tar.bz2 |
OEM EULA extracted correctly from manifest.
Fixing CustomizationDocument to return full path to the pages being queried.
BUG=chromium:3178
TEST=none
Review URL: http://codereview.chromium.org/2878051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/customization_document.cc')
-rw-r--r-- | chrome/browser/chromeos/customization_document.cc | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/customization_document.cc b/chrome/browser/chromeos/customization_document.cc index 19410ec..8d0e2e4 100644 --- a/chrome/browser/chromeos/customization_document.cc +++ b/chrome/browser/chromeos/customization_document.cc @@ -6,7 +6,6 @@ #include <string> -#include "base/file_path.h" #include "base/file_util.h" #include "base/json/json_reader.h" #include "base/logging.h" @@ -72,6 +71,16 @@ bool CustomizationDocument::ParseFromJsonValue(const DictionaryValue* root) { // StartupCustomizationDocument implementation. +bool StartupCustomizationDocument::LoadManifestFromFile( + const FilePath& manifest_path) { + if (CustomizationDocument::LoadManifestFromFile(manifest_path)) { + manifest_path_ = manifest_path; + return true; + } else { + return false; + } +} + bool StartupCustomizationDocument::ParseFromJsonValue( const DictionaryValue* root) { if (!CustomizationDocument::ParseFromJsonValue(root)) @@ -128,14 +137,14 @@ bool StartupCustomizationDocument::ParseFromJsonValue( return true; } -const StartupCustomizationDocument::SetupContent* - StartupCustomizationDocument::GetSetupContent( - const std::string& locale) const { +FilePath StartupCustomizationDocument::GetSetupContentPagePath( + const std::string& locale, std::string SetupContent::* page_path) const { SetupContentMap::const_iterator content_iter = setup_content_.find(locale); if (content_iter != setup_content_.end()) { - return &content_iter->second; + return manifest_path_.DirName().Append(content_iter->second.*page_path); + } else { + return FilePath(); } - return NULL; } // ServicesCustomizationDocument implementation. |