Index: chrome/browser/sync/engine/download_updates_command.cc |
diff --git a/chrome/browser/sync/engine/download_updates_command.cc b/chrome/browser/sync/engine/download_updates_command.cc |
index e05da4e621e2f9941e16b59e3188e4d2babe8670..7677989210cb691c5fe38a06dea474419a67a0e1 100644 |
--- a/chrome/browser/sync/engine/download_updates_command.cc |
+++ b/chrome/browser/sync/engine/download_updates_command.cc |
@@ -6,11 +6,13 @@ |
#include <string> |
+#include "base/command_line.h" |
#include "chrome/browser/sync/engine/syncer.h" |
#include "chrome/browser/sync/engine/syncer_proto_util.h" |
#include "chrome/browser/sync/engine/syncproto.h" |
#include "chrome/browser/sync/syncable/directory_manager.h" |
#include "chrome/browser/sync/syncable/model_type_payload_map.h" |
+#include "chrome/common/chrome_switches.h" |
using syncable::ScopedDirLookup; |
@@ -33,6 +35,10 @@ void DownloadUpdatesCommand::ExecuteImpl(SyncSession* session) { |
ClientToServerMessage::GET_UPDATES); |
GetUpdatesMessage* get_updates = |
client_to_server_message.mutable_get_updates(); |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableSyncedBookmarksFolder)) { |
+ get_updates->set_include_syncable_bookmarks(true); |
+ } |
ScopedDirLookup dir(session->context()->directory_manager(), |
session->context()->account_name()); |