Revert 239635 "Revert 239615 "Retry: Clean up TestProfileSyncSer..."

Didn't help.

> Revert 239615 "Retry: Clean up TestProfileSyncService tests"
> 
> Failed on CrOS:
> 
> http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28x86%29/builds/18496/steps/BuildPackages/logs/stdio
> 
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:417:11: error: 'MetaInfo' in namespace 'sync_pb' does not name a type
> chromeos-chrome-33.0.1734.0_alpha-r1:      const sync_pb::MetaInfo& proto) {
> chromeos-chrome-33.0.1734.0_alpha-r1:            ^
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:417:30: error: ISO C++ forbids declaration of 'proto' with no type [-fpermissive]
> chromeos-chrome-33.0.1734.0_alpha-r1:      const sync_pb::MetaInfo& proto) {
> chromeos-chrome-33.0.1734.0_alpha-r1:                               ^
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc: In function 'base::DictionaryValue* syncer::MetaInfoToValue(const int&)':
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:419:13: error: request for member 'has_key' in 'proto', which is of non-class type 'const int'
> chromeos-chrome-33.0.1734.0_alpha-r1:    SET_STR(key);
> chromeos-chrome-33.0.1734.0_alpha-r1:              ^
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:419:72: error: request for member 'key' in 'proto', which is of non-class type 'const int'
> chromeos-chrome-33.0.1734.0_alpha-r1:    SET_STR(key);
> chromeos-chrome-33.0.1734.0_alpha-r1:                                                                         ^
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:420:13: error: request for member 'has_value' in 'proto', which is of non-class type 'const int'
> chromeos-chrome-33.0.1734.0_alpha-r1:    SET_STR(value);
> chromeos-chrome-33.0.1734.0_alpha-r1:              ^
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:420:76: error: request for member 'value' in 'proto', which is of non-class type 'const int'
> chromeos-chrome-33.0.1734.0_alpha-r1:    SET_STR(value);
> chromeos-chrome-33.0.1734.0_alpha-r1:                                                                             ^
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc: In function 'base::DictionaryValue* syncer::BookmarkSpecificsToValue(const sync_pb::BookmarkSpecifics&)':
> chromeos-chrome-33.0.1734.0_alpha-r1: sync/protocol/proto_value_conversions.cc:432:51: error: 'const class sync_pb::BookmarkSpecifics' has no member named 'meta_info'
> chromeos-chrome-33.0.1734.0_alpha-r1:    SET_REP(meta_info, &MetaInfoToValue);
> chromeos-chrome-33.0.1734.0_alpha-r1:                                                    ^
> chromeos-chrome-33.0.1734.0_alpha-r1: make: *** [c/Release/obj.target/sync_core/sync/protocol/proto_value_conversions.o] Error 1
> chromeos-chrome-33.0.1734.0_alpha-r1: make: *** Waiting for unfinished jobs....
> chromeos-chrome-33.0.1734.0_alpha-r1:  * ERROR: chromeos-base/chromeos-chrome-33.0.1734.0_alpha-r1 failed (compile phase):
> chromeos-chrome-33.0.1734.0_alpha-r1:  *   emake failed
> chromeos-chrome-33.0.1734.0_alpha-r1:  * 
> 
> > Retry: Clean up TestProfileSyncService tests
> > 
> > This is a retry of r238348, which was reverted in r238368.  I believe
> > the build failure that led to the revert, though related to my change,
> > was a flake caused by stale object files on the build bot.
> > 
> > This CL refactors many of the tests in profile_sync_service_unittest.cc.
> > It continues the refactoring work begun in r233533, r235661, and
> > r235854.
> > 
> > The JsController tests have been deleted. There is not much point in
> > testing the JsController here; it can be more easily tested on its own
> > in sync_js_controller_uniittest.cc. The SyncJsController unit tests have
> > been updated so they now cover the few cases that were formerly only
> > exercised in the ProfileSyncService unit tests.
> > 
> > It converts all remaining uncoverted tests from relying on the
> > TestProfileSyncService to using a real ProfileSyncService with an
> > injected backend. The injected backend makes it easier to create the
> > scenarios we want to test. We can inject a specially crafted SBH rather
> > than fiddling with "synchronous init" and "fail initial download" flags.
> > 
> > Since the TestProfileSyncService no longer needs to support the wide
> > variety of test scenarios required by the tests in
> > profile_sync_service_unittest.cc, we can greatly simplify its
> > implementation. Many of its parameters and associated code have been
> > removed.
> > 
> > BUG=140354,312994
> > 
> > Review URL: https://codereview.chromium.org/102513002
> 
> TBR=rlarocque@chromium.org
> 
> Review URL: https://codereview.chromium.org/110993003

TBR=scottmg@chromium.org

Review URL: https://codereview.chromium.org/111183003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239643 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 239643
Revert of https://codereview.chromium.org/103373003/
Reason for revert: Causes assertions on the bots

TBR=tonyg@chromium.org,tonyg@google.com,nduca@chromium.org,achuith@chromium.org
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/110813003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239644 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 239644