chrome/browser/chromeos/drive/drive_feed_loader.cc
// Saves the string |serialized_proto| to a file at |path| on a blocking thread.
Saves the string |serialized_proto| to a file at |path| on a blocking thread.
Saves the string |serialized_proto| to a file at |path| on a blocking thread .
void SaveProtoOnBlockingPool(const FilePath& path,
                             scoped_ptr<std::string> serialized_proto) {
  const int file_size = static_cast<int>(serialized_proto->length());
  if (file_util::WriteFile(path, serialized_proto->data(), file_size) !=
      file_size) {
    LOG(WARNING) << "Drive proto file can't be stored at "
                 << path.value();
    if (!file_util::Delete(path, true)) {
      LOG(WARNING) << "Drive proto file can't be deleted at "
                   << path.value();
    }
  }
}
void SaveProtoOnBlockingPool ( const FilePath & path , scoped_ptr < std :: string > serialized_proto ) { const int file_size = static_cast < int > ( serialized_proto -> length ( ) ) ; if ( file_util :: WriteFile ( path , serialized_proto -> data ( ) , file_size ) != file_size ) { LOG ( WARNING ) << " " << path . value ( ) ; if ( ! file_util :: Delete ( path , true ) ) { LOG ( WARNING ) << " " << path . value ( ) ; } } }
Saves the string |serialized_proto| to a file at |path| on a blocking thread.
Saves the string |serialized_proto| to a file at |path| on a blocking thread .