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

Unified Diff: chrome/browser/spellchecker/spelling_service_client.h

Issue 2240083004: Remove stl_util's STLDeleteContainerPairPointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/spellchecker/spelling_service_client.h
diff --git a/chrome/browser/spellchecker/spelling_service_client.h b/chrome/browser/spellchecker/spelling_service_client.h
index b8865d0a16c93c0dbfa932245641cbc46755ec16..a55b34dd8bcb6888676e5943e09a95e7dc7831f3 100644
--- a/chrome/browser/spellchecker/spelling_service_client.h
+++ b/chrome/browser/spellchecker/spelling_service_client.h
@@ -97,10 +97,14 @@ class SpellingServiceClient : public net::URLFetcherDelegate {
private:
struct TextCheckCallbackData {
- TextCheckCallbackData(TextCheckCompleteCallback callback,
+ TextCheckCallbackData(std::unique_ptr<net::URLFetcher> fetcher,
+ TextCheckCompleteCallback callback,
base::string16 text);
~TextCheckCallbackData();
+ // The fetcher used.
+ std::unique_ptr<net::URLFetcher> fetcher;
+
// The callback function to be called when we receive a response from the
// Spelling service and parse it.
TextCheckCompleteCallback callback;
@@ -118,7 +122,8 @@ class SpellingServiceClient : public net::URLFetcherDelegate {
virtual std::unique_ptr<net::URLFetcher> CreateURLFetcher(const GURL& url);
// The URLFetcher object used for sending a JSON-RPC request.
- std::map<const net::URLFetcher*, TextCheckCallbackData*> spellcheck_fetchers_;
+ std::map<const net::URLFetcher*, std::unique_ptr<TextCheckCallbackData>>
+ spellcheck_fetchers_;
};
#endif // CHROME_BROWSER_SPELLCHECKER_SPELLING_SERVICE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698