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

Unified Diff: content/shell/geolocation/shell_access_token_store.cc

Issue 653573003: Move ShellAccessTokenStore away from //content/shell/geolocation/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync gyp and gn Created 6 years, 2 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 | « content/shell/geolocation/shell_access_token_store.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/geolocation/shell_access_token_store.cc
diff --git a/content/shell/geolocation/shell_access_token_store.cc b/content/shell/geolocation/shell_access_token_store.cc
deleted file mode 100644
index bdcf6994c6c36b3f2b8ae5b14b813edd63d38ddb..0000000000000000000000000000000000000000
--- a/content/shell/geolocation/shell_access_token_store.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/shell/geolocation/shell_access_token_store.h"
-
-#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
-#include "base/strings/utf_string_conversions.h"
-#include "content/public/browser/browser_thread.h"
-#include "content/shell/browser/shell_browser_context.h"
-
-namespace content {
-
-ShellAccessTokenStore::ShellAccessTokenStore(
- content::ShellBrowserContext* shell_browser_context)
- : shell_browser_context_(shell_browser_context),
- system_request_context_(NULL) {
-}
-
-ShellAccessTokenStore::~ShellAccessTokenStore() {
-}
-
-void ShellAccessTokenStore::LoadAccessTokens(
- const LoadAccessTokensCallbackType& callback) {
- BrowserThread::PostTaskAndReply(
- BrowserThread::UI,
- FROM_HERE,
- base::Bind(&ShellAccessTokenStore::GetRequestContextOnUIThread,
- this,
- shell_browser_context_),
- base::Bind(&ShellAccessTokenStore::RespondOnOriginatingThread,
- this,
- callback));
-}
-
-void ShellAccessTokenStore::GetRequestContextOnUIThread(
- content::ShellBrowserContext* shell_browser_context) {
- system_request_context_ = shell_browser_context->GetRequestContext();
-}
-
-void ShellAccessTokenStore::RespondOnOriginatingThread(
- const LoadAccessTokensCallbackType& callback) {
- // Since content_shell is a test executable, rather than an end user program,
- // we provide a dummy access_token set to avoid hitting the server.
- AccessTokenSet access_token_set;
- access_token_set[GURL()] = base::ASCIIToUTF16("chromium_content_shell");
- callback.Run(access_token_set, system_request_context_.get());
- system_request_context_ = NULL;
-}
-
-void ShellAccessTokenStore::SaveAccessToken(
- const GURL& server_url, const base::string16& access_token) {
-}
-
-} // namespace content
« no previous file with comments | « content/shell/geolocation/shell_access_token_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698