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

Unified Diff: chrome/browser/ui/views/ash/app_list/extension_app_item.cc

Issue 10704023: Moved ExtensionPrefs and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master merged in Created 8 years, 5 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/ui/views/ash/app_list/extension_app_item.cc
diff --git a/chrome/browser/ui/views/ash/app_list/extension_app_item.cc b/chrome/browser/ui/views/ash/app_list/extension_app_item.cc
index 44722013c6cb4a3a714beba949b60461eaef2dda..edccff17d76796f7b9f3d1bb03801e3bda84722b 100644
--- a/chrome/browser/ui/views/ash/app_list/extension_app_item.cc
+++ b/chrome/browser/ui/views/ash/app_list/extension_app_item.cc
@@ -94,16 +94,17 @@ class ExtensionUninstaller : public ExtensionUninstallDialog::Delegate {
DISALLOW_COPY_AND_ASSIGN(ExtensionUninstaller);
};
-ExtensionPrefs::LaunchType GetExtensionLaunchType(
+extensions::ExtensionPrefs::LaunchType GetExtensionLaunchType(
Profile* profile,
const std::string& extension_id) {
return profile->GetExtensionService()->extension_prefs()->GetLaunchType(
- extension_id, ExtensionPrefs::LAUNCH_DEFAULT);
+ extension_id, extensions::ExtensionPrefs::LAUNCH_DEFAULT);
}
-void SetExtensionLaunchType(Profile* profile,
- const std::string& extension_id,
- ExtensionPrefs::LaunchType launch_type) {
+void SetExtensionLaunchType(
+ Profile* profile,
+ const std::string& extension_id,
+ extensions::ExtensionPrefs::LaunchType launch_type) {
profile->GetExtensionService()->extension_prefs()->SetLaunchType(
extension_id, launch_type);
}
@@ -251,7 +252,7 @@ void ExtensionAppItem::ExecuteCommand(int command_id) {
command_id < LAUNCH_TYPE_LAST) {
SetExtensionLaunchType(profile_,
extension_id_,
- static_cast<ExtensionPrefs::LaunchType>(
+ static_cast<extensions::ExtensionPrefs::LaunchType>(
command_id - LAUNCH_TYPE_START));
} else if (command_id == OPTIONS) {
ShowExtensionOptions();
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/browser/ui/views/ash/extension_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698