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

Unified Diff: chrome/browser/geolocation/access_token_store_browsertest.cc

Issue 7734005: Get rid of the link time dependency between content and chrome through the geolocation code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
Index: chrome/browser/geolocation/access_token_store_browsertest.cc
===================================================================
--- chrome/browser/geolocation/access_token_store_browsertest.cc (revision 98089)
+++ chrome/browser/geolocation/access_token_store_browsertest.cc (working copy)
@@ -2,10 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/geolocation/access_token_store.h"
-
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/geolocation/chrome_access_token_store.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/browser/browser_thread.h"
@@ -45,7 +44,7 @@
AccessTokenStore::LoadAccessTokensCallbackType* callback) {
ASSERT_TRUE(BrowserThread::CurrentlyOn(kExpectedClientThreadId));
if (*store == NULL)
- (*store) = NewChromePrefsAccessTokenStore();
+ (*store) = new ChromeAccessTokenStore();
(*store)->LoadAccessTokens(consumer, callback);
}
@@ -57,7 +56,7 @@
void RunCancelTestInClientTread() {
ASSERT_TRUE(BrowserThread::CurrentlyOn(kExpectedClientThreadId));
- scoped_refptr<AccessTokenStore> store(NewChromePrefsAccessTokenStore());
+ scoped_refptr<AccessTokenStore> store(new ChromeAccessTokenStore());
CancelableRequestConsumer consumer;
TokenLoadClientForTest load_client;
@@ -117,8 +116,7 @@
}
if (token_to_set_) {
- scoped_refptr<AccessTokenStore> store(
- NewChromePrefsAccessTokenStore());
+ scoped_refptr<AccessTokenStore> store(new ChromeAccessTokenStore());
store->SaveAccessToken(ref_url_, *token_to_set_);
}
BrowserThread::PostTask(
« no previous file with comments | « chrome/browser/geolocation/access_token_store.cc ('k') | chrome/browser/geolocation/chrome_access_token_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698