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

Unified Diff: chrome/browser/extensions/api/app_runtime/app_runtime_api.cc

Issue 12089102: Make most code on mac compile with enable_web_intents=0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ffff Created 7 years, 11 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/extensions/api/app_runtime/app_runtime_api.cc
diff --git a/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc b/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc
index 4f22f3d61119de1abc90e449d77d6ba882931fc9..b3071a05ed0d4d595ea3f18c1188c385269fd2d5 100644
--- a/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc
+++ b/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc
@@ -94,6 +94,7 @@ void AppEventRouter::DispatchOnLaunchedEventWithWebIntent(
Profile* profile, const Extension* extension,
content::WebIntentsDispatcher* intents_dispatcher,
content::WebContents* source) {
+#if defined(ENABLE_WEB_INTENTS)
webkit_glue::WebIntentData web_intent_data = intents_dispatcher->GetIntent();
scoped_ptr<ListValue> args(new ListValue());
DictionaryValue* launch_data = new DictionaryValue();
@@ -143,9 +144,11 @@ void AppEventRouter::DispatchOnLaunchedEventWithWebIntent(
callbacks->RegisterCallback(extension, intents_dispatcher, source);
args->Append(base::Value::CreateIntegerValue(intent_id));
DispatchOnLaunchedEventImpl(extension->id(), args.Pass(), profile);
+#endif
}
bool AppRuntimePostIntentResponseFunction::RunImpl() {
+#if defined(ENABLE_WEB_INTENTS)
DictionaryValue* details = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &details));
@@ -174,6 +177,9 @@ bool AppRuntimePostIntentResponseFunction::RunImpl() {
reply_type, UTF8ToUTF16(data)));
return true;
+#else
+ return false;
+#endif
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698