The convention is for these factories to be named identically between //chrome and //ios/chrome to reduce cognitive load between engineers who work across Chrome on iOS and other platforms. There are lots of exceptions due to the incremental unforking of iOS from //chrome. As background work, we can bring these exceptions into line as we find them. Each exception that we remove makes the codebase incrementally better :).
The formula to convert a given factory for a class Foo is simple. Let's assume that the current factory is in ios/chrome/foo/ios_chrome_foo_factory.*.
git mv ios/chrome/foo/ios_chrome_foo_factory.h ios/chrome/foo/foo_factory.h
git mv ios/chrome/foo/ios_chrome_foo_factory.cc ios/chrome/foo/foo_factory.cc
./tools/git/mass-rename.py
git commit -am "Move files"
./tools/git/mffr.py -g "ios/chrome/*" IOSChromeFooFactory FooFactory
git cl format
git commit -am "Rename class"
Comment 1 by bugdroid1@chromium.org
, May 28 2018