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

Unified Diff: chrome/browser/device_orientation/provider_impl.cc

Issue 5841002: Finish deinlining virtual methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert parts of the balloon modifications Created 10 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
« no previous file with comments | « chrome/browser/device_orientation/data_fetcher.h ('k') | chrome/browser/dom_ui/bug_report_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/device_orientation/provider_impl.cc
diff --git a/chrome/browser/device_orientation/provider_impl.cc b/chrome/browser/device_orientation/provider_impl.cc
index 5ebfdb61116663bedb1988bc12fcbfb0792cf911..dfe994a09f02ece26912fb925d0982a6c78c58a8 100644
--- a/chrome/browser/device_orientation/provider_impl.cc
+++ b/chrome/browser/device_orientation/provider_impl.cc
@@ -189,12 +189,10 @@ int ProviderImpl::SamplingIntervalMs() const {
DCHECK(MessageLoop::current() == polling_thread_->message_loop());
DCHECK(data_fetcher_.get());
- int fetcher_interval = data_fetcher_->MinSamplingIntervalMs();
-
- if (fetcher_interval > kDesiredSamplingIntervalMs)
- return fetcher_interval;
- else
- return kDesiredSamplingIntervalMs;
+ // TODO(erg): There used to be unused code here, that called a default
+ // implementation on the DataFetcherInterface that was never defined. I'm
+ // removing unused methods from headers.
+ return kDesiredSamplingIntervalMs;
Lei Zhang 2010/12/16 21:31:51 +hans, fyi
}
} // namespace device_orientation
« no previous file with comments | « chrome/browser/device_orientation/data_fetcher.h ('k') | chrome/browser/dom_ui/bug_report_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698