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

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: update Created 4 years, 1 month 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 adec01be91072b35049e58f53fa7618fe22a1930..b72b48e4abd1ce510dbf3beb04e28eb0d0653a22 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