#include <eina_slice.h>
#include "base/base64.h"
+#include "base/base_switches.h"
+#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/escape.h"
void ClipboardHelperEflEE::RefreshClipboard() {
LOG(INFO) << "[CLIPBOARD] RefreshClipboard!";
+ /*TO DO: Need to revisit ecore_evas_selection_exists() and
+ ecore_evas_selection_get(), as there were crashes observed
+ with the calls*/
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableChrome)) {
+ return;
+ }
+
if (!ee_) {
LOG(ERROR) << "[CLIPBOARD] ClipboardHelperEflEE::RefreshClipboard "
"ecore_evas_selection_get with NULL widget";