Replace kEmptyString with OnceInit initialized string*
commit7f1ff650dbdd7e589876477f2a6a92ea3ca50c35
authorscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 14 Feb 2014 00:47:37 +0000 (14 00:47 +0000)
committerscottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 14 Feb 2014 00:47:37 +0000 (14 00:47 +0000)
tree99564b2b1155b7892dcf80ec44e37941aa90f8f6
parent7e8a60e68c43da27f755554a713872446d51cc34
Replace kEmptyString with OnceInit initialized string*

This removes the global constructor call for std::string kEmptyString.

This is roughly an application of b/7549760 from the internal
version of protobuf.

Upstream patch here https://codereview.appspot.com/63480043/.

R=fischman@chromium.org
TBR=darin@chromium.org
BUG=341941,94925

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251212 0039d316-1c4b-4281-b951-d872f2087c98
third_party/protobuf/README.chromium
third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc
third_party/protobuf/src/google/protobuf/compiler/plugin.pb.cc
third_party/protobuf/src/google/protobuf/compiler/plugin.pb.h
third_party/protobuf/src/google/protobuf/descriptor.cc
third_party/protobuf/src/google/protobuf/descriptor.pb.cc
third_party/protobuf/src/google/protobuf/descriptor.pb.h
third_party/protobuf/src/google/protobuf/generated_message_reflection.cc
third_party/protobuf/src/google/protobuf/generated_message_util.cc
third_party/protobuf/src/google/protobuf/generated_message_util.h
third_party/protobuf/src/google/protobuf/repeated_field.h