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

Unified Diff: extensions/browser/api/runtime/runtime_api.cc

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable another test Created 6 years, 6 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/utility/media_galleries/ipc_data_source.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/runtime/runtime_api.cc
diff --git a/extensions/browser/api/runtime/runtime_api.cc b/extensions/browser/api/runtime/runtime_api.cc
index e2e522f8033857f85ab70e9e81f395fd846290a2..8d7d2c581fe211664c053e0bfc91472871841447 100644
--- a/extensions/browser/api/runtime/runtime_api.cc
+++ b/extensions/browser/api/runtime/runtime_api.cc
@@ -117,14 +117,12 @@ void SetUninstallURL(ExtensionPrefs* prefs,
extension_id, kUninstallUrl, new base::StringValue(url_string));
}
-#if defined(ENABLE_EXTENSIONS)
std::string GetUninstallURL(ExtensionPrefs* prefs,
const std::string& extension_id) {
std::string url_string;
prefs->ReadPrefAsString(extension_id, kUninstallUrl, &url_string);
return url_string;
}
-#endif // defined(ENABLE_EXTENSIONS)
} // namespace
@@ -415,7 +413,6 @@ void RuntimeEventRouter::DispatchOnRestartRequiredEvent(
void RuntimeEventRouter::OnExtensionUninstalled(
content::BrowserContext* context,
const std::string& extension_id) {
-#if defined(ENABLE_EXTENSIONS)
GURL uninstall_url(
GetUninstallURL(ExtensionPrefs::Get(context), extension_id));
@@ -423,7 +420,6 @@ void RuntimeEventRouter::OnExtensionUninstalled(
return;
RuntimeAPI::GetFactoryInstance()->Get(context)->OpenURL(uninstall_url);
-#endif // defined(ENABLE_EXTENSIONS)
}
ExtensionFunction::ResponseAction RuntimeGetBackgroundPageFunction::Run() {
« no previous file with comments | « chrome/utility/media_galleries/ipc_data_source.cc ('k') | extensions/extensions.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698