| Index: chrome/browser/chromeos/cros/libcros_service_library.cc
|
| diff --git a/chrome/browser/chromeos/cros/libcros_service_library.cc b/chrome/browser/chromeos/cros/libcros_service_library.cc
|
| index cd4d578d53bfae085d2927560ce06070de6f272c..4ea1856c586a73cff06e7be5a208b1795dc44fd5 100644
|
| --- a/chrome/browser/chromeos/cros/libcros_service_library.cc
|
| +++ b/chrome/browser/chromeos/cros/libcros_service_library.cc
|
| @@ -108,9 +108,6 @@ class LibCrosServiceLibraryImpl : public LibCrosServiceLibrary {
|
|
|
| LibCrosServiceLibraryImpl::LibCrosServiceLibraryImpl()
|
| : service_connection_(NULL) {
|
| - if (!CrosLibrary::Get()->EnsureLoaded()) {
|
| - LOG(ERROR) << "Cros library has not been loaded.";
|
| - }
|
| }
|
|
|
| LibCrosServiceLibraryImpl::~LibCrosServiceLibraryImpl() {
|
| @@ -307,9 +304,12 @@ class LibCrosServiceLibraryStubImpl : public LibCrosServiceLibrary {
|
|
|
| // Static.
|
| LibCrosServiceLibrary* LibCrosServiceLibrary::GetImpl(bool stub) {
|
| + LibCrosServiceLibrary* impl;
|
| if (stub)
|
| - return new LibCrosServiceLibraryStubImpl();
|
| - return new LibCrosServiceLibraryImpl();
|
| + impl = new LibCrosServiceLibraryStubImpl();
|
| + else
|
| + impl = new LibCrosServiceLibraryImpl();
|
| + return impl;
|
| }
|
|
|
| } // namespace chromeos
|
|
|