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

Side by Side Diff: chrome/browser/chromeos/extensions/echo_private_api.cc

Issue 18050009: Use a direct include of time headers in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/extensions/echo_private_api.h" 5 #include "chrome/browser/chromeos/extensions/echo_private_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" 15 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h"
16 #include "chrome/browser/chromeos/settings/cros_settings.h" 16 #include "chrome/browser/chromeos/settings/cros_settings.h"
17 #include "chrome/browser/chromeos/system/statistics_provider.h" 17 #include "chrome/browser/chromeos/system/statistics_provider.h"
18 #include "chrome/browser/chromeos/ui/echo_dialog_view.h" 18 #include "chrome/browser/chromeos/ui/echo_dialog_view.h"
19 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
20 #include "chrome/browser/ui/browser_window.h" 20 #include "chrome/browser/ui/browser_window.h"
21 #include "chrome/common/extensions/api/echo_private.h" 21 #include "chrome/common/extensions/api/echo_private.h"
22 #include "chrome/common/extensions/extension.h" 22 #include "chrome/common/extensions/extension.h"
23 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
24 24
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void EchoPrivateGetUserConsentFunction::Finalize(bool consent) { 242 void EchoPrivateGetUserConsentFunction::Finalize(bool consent) {
243 // Consent should not be true if offers redeeming is disabled. 243 // Consent should not be true if offers redeeming is disabled.
244 CHECK(redeem_offers_allowed_ || !consent); 244 CHECK(redeem_offers_allowed_ || !consent);
245 results_ = echo_api::GetUserConsent::Results::Create(consent); 245 results_ = echo_api::GetUserConsent::Results::Create(consent);
246 SendResponse(true); 246 SendResponse(true);
247 247
248 // Release the reference added in |OnRedeemOffersAllowedChecked|, before 248 // Release the reference added in |OnRedeemOffersAllowedChecked|, before
249 // showing the dialog. 249 // showing the dialog.
250 Release(); 250 Release();
251 } 251 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698