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

Unified Diff: chrome/browser/extensions/api/idle/idle_api.cc

Issue 10750016: Moved c/b/e/*idle* to c/b/e/api/idle/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync with trunk Created 8 years, 5 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/extensions/api/idle/idle_api.cc
diff --git a/chrome/browser/extensions/extension_idle_api.cc b/chrome/browser/extensions/api/idle/idle_api.cc
similarity index 95%
rename from chrome/browser/extensions/extension_idle_api.cc
rename to chrome/browser/extensions/api/idle/idle_api.cc
index 3501159503666ffeb0b6874153549d8c83353c85..eda6bfba0b04cf47573bbf51544b7e0e0576a494 100644
--- a/chrome/browser/extensions/extension_idle_api.cc
+++ b/chrome/browser/extensions/api/idle/idle_api.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/extension_idle_api.h"
+#include "chrome/browser/extensions/api/idle/idle_api.h"
#include <algorithm>
#include <map>
@@ -16,13 +16,17 @@
#include "base/time.h"
#include "chrome/browser/extensions/event_router.h"
#include "chrome/browser/extensions/extension_host.h"
-#include "chrome/browser/extensions/extension_idle_api_constants.h"
+#include "chrome/browser/extensions/api/idle/idle_api_constants.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/extension.h"
#include "content/public/browser/render_view_host.h"
-namespace keys = extension_idle_api_constants;
+using extensions::ExtensionIdleCache;
+using extensions::ExtensionIdleEventRouter;
+using extensions::ExtensionIdleQueryStateFunction;
+
+namespace keys = extensions::idle_api_constants;
namespace {
@@ -78,7 +82,8 @@ bool ExtensionIdlePollingTask::poll_task_running_ = false;
void ExtensionIdlePollingTask::IdleStateCallback(IdleState current_state) {
// If we just came into an active state, notify the extension.
if (IDLE_STATE_ACTIVE == current_state && last_state_ != current_state)
- ExtensionIdleEventRouter::OnIdleStateChange(profile_, current_state);
+ ExtensionIdleEventRouter::OnIdleStateChange(profile_,
+ current_state);
ExtensionIdlePollingTask::poll_task_running_ = false;
@@ -134,7 +139,7 @@ int CheckThresholdBounds(int timeout) {
return timeout;
}
-}; // namespace
+} // namespace
void ExtensionIdleEventRouter::OnIdleStateChange(Profile* profile,
IdleState state) {
« no previous file with comments | « chrome/browser/extensions/api/idle/idle_api.h ('k') | chrome/browser/extensions/api/idle/idle_api_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698