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

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

Issue 206673006: Set OEM apps folder name from customization manifest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 | « no previous file | chrome/browser/chromeos/customization_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/customization_document.h
diff --git a/chrome/browser/chromeos/customization_document.h b/chrome/browser/chromeos/customization_document.h
index e14f63331c3501012830709206a5935d92cc6666..95885fc9439d3f3996a4f40ac9bca19483d77fc1 100644
--- a/chrome/browser/chromeos/customization_document.h
+++ b/chrome/browser/chromeos/customization_document.h
@@ -169,6 +169,9 @@ class ServicesCustomizationDocument : public CustomizationDocument,
// Cache of OEM default apps stored in profile preferences.
extensions::ExternalLoader* CreateExternalLoader(Profile* profile);
+ // Returns the name of the folder for OEM apps for given |locale|.
+ std::string GetOemAppsFolderName(const std::string& locale) const;
+
// Set delay between network checking for testing.
void SetZeroNetworkDelayForTesting() {
network_delay_ = base::TimeDelta();
@@ -224,6 +227,14 @@ class ServicesCustomizationDocument : public CustomizationDocument,
// Customization document not found for give ID.
void OnCustomizationNotFound();
+ // Set OEM apps folder name for AppListSyncableService for |profile|.
+ void SetOemFolderName(Profile* profile, const base::DictionaryValue& root);
+
+ // Returns the name of the folder for OEM apps for given |locale|.
+ std::string GetOemAppsFolderNameImpl(
+ const std::string& locale,
+ const base::DictionaryValue& root) const;
+
// Services customization manifest URL.
GURL url_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/customization_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698