summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorlcwu@chromium.org <lcwu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 07:16:21 +0000
committerlcwu@chromium.org <lcwu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 07:16:21 +0000
commit2c054e9345d25a14f68792991b5a789e64adf1ac (patch)
tree22c8b5b63cc3fc42a75d0ec00af3c92e2831a44d /ui
parentbf37fa38b4223e3b58c7c7ad668485decff896c1 (diff)
downloadchromium_src-2c054e9345d25a14f68792991b5a789e64adf1ac.zip
chromium_src-2c054e9345d25a14f68792991b5a789e64adf1ac.tar.gz
chromium_src-2c054e9345d25a14f68792991b5a789e64adf1ac.tar.bz2
Guard the definition of kMimeTypeWebCustomData with the proper feature macros to avoid an unused-const-variable warning with Clang when these features are not enabled.
BUG=358895 Review URL: https://codereview.chromium.org/219963017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/base/clipboard/custom_data_helper_linux.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/base/clipboard/custom_data_helper_linux.cc b/ui/base/clipboard/custom_data_helper_linux.cc
index 87ebd39..c9dc47f 100644
--- a/ui/base/clipboard/custom_data_helper_linux.cc
+++ b/ui/base/clipboard/custom_data_helper_linux.cc
@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "build/build_config.h"
#include "ui/base/clipboard/custom_data_helper.h"
namespace ui {
// TODO(dcheng): This name is temporary. See crbug.com/106449
+#if defined(USE_AURA) || defined(TOOLKIT_GTK)
const char kMimeTypeWebCustomData[] = "chromium/x-web-custom-data";
+#endif
} // namespace ui