Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5396)

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_apitest.cc

Issue 24637004: cryptohome: Merge FakeCryptohomeClient and CryptohomeClinentStubImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the build Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/policy/power_policy_browsertest.cc ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/networking_private/networking_private_apitest.cc
diff --git a/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc b/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc
index 56c6fb96df46705e51e82c6176658e7e4547ebd7..84d362aa1ff3fd70c44fe6c9f86aea2b363383a1 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc
+++ b/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc
@@ -37,7 +37,6 @@ namespace chromeos {
#if defined(OS_CHROMEOS)
const char kUser1ProfilePath[] = "/profile/user1/shill";
-const char kUserIdStubHashSuffix[] = "-hash";
#endif // defined(OS_CHROMEOS)
@@ -78,8 +77,8 @@ class ExtensionNetworkingPrivateApiTest :
// uses the ProfileHelper to obtain the userhash crbug/238623.
std::string login_user =
command_line->GetSwitchValueNative(switches::kLoginUser);
- // Do the same as CryptohomeClientStubImpl::GetSanitizedUsername
- std::string sanitized_user = login_user + kUserIdStubHashSuffix;
+ std::string sanitized_user = CryptohomeClient::GetStubSanitizedUsername(
+ login_user);
command_line->AppendSwitchASCII(switches::kLoginProfile, sanitized_user);
if (GetParam())
command_line->AppendSwitch(::switches::kMultiProfiles);
« no previous file with comments | « chrome/browser/chromeos/policy/power_policy_browsertest.cc ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698