net: Fix latent style issues
Currently, the Clang style checker ignores templates. In order to turn it on,
we first must fix latent style violations. This CL covers net/
BUG=441916
[email protected]
Review URL: https://codereview.chromium.org/787883003
Cr-Commit-Position: refs/heads/master@{#309089}
diff --git a/net/cookies/cookie_monster.cc b/net/cookies/cookie_monster.cc
index e879a8f..d3186471 100644
--- a/net/cookies/cookie_monster.cc
+++ b/net/cookies/cookie_monster.cc
@@ -552,6 +552,9 @@
// CookieMonsterTask:
virtual void Run() override;
+ protected:
+ ~DeleteTask() override;
+
private:
// Runs the delete task and returns a result.
virtual Result RunDeleteTask() = 0;
@@ -564,8 +567,12 @@
};
template <typename Result>
-base::Closure CookieMonster::DeleteTask<Result>::
-RunDeleteTaskAndBindCallback() {
+CookieMonster::DeleteTask<Result>::~DeleteTask() {
+}
+
+template <typename Result>
+base::Closure
+CookieMonster::DeleteTask<Result>::RunDeleteTaskAndBindCallback() {
Result result = RunDeleteTask();
if (callback_.is_null())
return base::Closure();