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

Side by Side Diff: chrome/browser/ui/webui/identity_internals_ui_browsertest.cc

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/identity_internals_ui.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/identity_internals_ui_browsertest.h" 5 #include "chrome/browser/ui/webui/identity_internals_ui_browsertest.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "chrome/browser/extensions/api/identity/extension_token_key.h" 9 #include "chrome/browser/extensions/api/identity/extension_token_key.h"
10 #include "chrome/browser/extensions/api/identity/identity_api.h" 10 #include "chrome/browser/extensions/api/identity/identity_api.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const std::string extension_id, 47 const std::string extension_id,
48 const std::vector<std::string>& scopes, 48 const std::vector<std::string>& scopes,
49 int time_to_live) { 49 int time_to_live) {
50 extensions::IdentityTokenCacheValue token_cache_value = 50 extensions::IdentityTokenCacheValue token_cache_value =
51 extensions::IdentityTokenCacheValue(token_id, 51 extensions::IdentityTokenCacheValue(token_id,
52 base::TimeDelta::FromSeconds(time_to_live)); 52 base::TimeDelta::FromSeconds(time_to_live));
53 extensions::ExtensionTokenKey key( 53 extensions::ExtensionTokenKey key(
54 extension_id, 54 extension_id,
55 "test@example.com", 55 "test@example.com",
56 std::set<std::string>(scopes.begin(), scopes.end())); 56 std::set<std::string>(scopes.begin(), scopes.end()));
57 extensions::IdentityAPI::GetFactoryInstance()-> 57 extensions::IdentityAPI::GetFactoryInstance()
58 GetForProfile(browser()->profile())-> 58 ->Get(browser()->profile())
59 SetCachedToken(key, token_cache_value); 59 ->SetCachedToken(key, token_cache_value);
60 } 60 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/identity_internals_ui.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698