| Index: chrome/browser/shell_integration_linux_unittest.cc
|
| diff --git a/chrome/browser/shell_integration_linux_unittest.cc b/chrome/browser/shell_integration_linux_unittest.cc
|
| index 96a18a01250006b68d21b9fff8a280e28638c61c..d6a7120a60cf04f6d0c3313ef64be998757e6d7b 100644
|
| --- a/chrome/browser/shell_integration_linux_unittest.cc
|
| +++ b/chrome/browser/shell_integration_linux_unittest.cc
|
| @@ -41,26 +41,26 @@ class MockEnvironment : public base::Environment {
|
| public:
|
| MockEnvironment() {}
|
|
|
| - void Set(const std::string& name, const std::string& value) {
|
| - variables_[name] = value;
|
| + void Set(base::StringPiece name, const std::string& value) {
|
| + variables_[name.as_string()] = value;
|
| }
|
|
|
| - bool GetVar(const char* variable_name, std::string* result) override {
|
| - if (ContainsKey(variables_, variable_name)) {
|
| - *result = variables_[variable_name];
|
| + bool GetVar(base::StringPiece variable_name, std::string* result) override {
|
| + if (ContainsKey(variables_, variable_name.as_string())) {
|
| + *result = variables_[variable_name.as_string()];
|
| return true;
|
| }
|
|
|
| return false;
|
| }
|
|
|
| - bool SetVar(const char* variable_name,
|
| + bool SetVar(base::StringPiece variable_name,
|
| const std::string& new_value) override {
|
| ADD_FAILURE();
|
| return false;
|
| }
|
|
|
| - bool UnSetVar(const char* variable_name) override {
|
| + bool UnSetVar(base::StringPiece variable_name) override {
|
| ADD_FAILURE();
|
| return false;
|
| }
|
|
|