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

Unified Diff: components/offline_pages/core/background/offliner_policy.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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: components/offline_pages/core/background/offliner_policy.h
diff --git a/components/offline_pages/background/offliner_policy.h b/components/offline_pages/core/background/offliner_policy.h
similarity index 95%
rename from components/offline_pages/background/offliner_policy.h
rename to components/offline_pages/core/background/offliner_policy.h
index 7ffd45496a4704ca45ed28ea028837245029e612..3a579ec66151e7f1c5a3a882750e6434dea4d1ea 100644
--- a/components/offline_pages/background/offliner_policy.h
+++ b/components/offline_pages/core/background/offliner_policy.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_H_
-#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_H_
+#ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_OFFLINER_POLICY_H_
+#define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_OFFLINER_POLICY_H_
namespace {
// The max number of started tries is to guard against pages that make the
@@ -89,9 +89,7 @@ class OfflinerPolicy {
// completed, but failed.
int GetMaxCompletedTries() const { return max_completed_tries_; }
- bool PowerRequired(bool user_requested) const {
- return (!user_requested);
- }
+ bool PowerRequired(bool user_requested) const { return (!user_requested); }
bool UnmeteredNetworkRequired(bool user_requested) const {
return !(user_requested);
@@ -147,5 +145,4 @@ class OfflinerPolicy {
};
} // namespace offline_pages
-
-#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_OFFLINER_POLICY_H_
+#endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_OFFLINER_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698