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

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

Issue 15798019: Use a direct include of strings headers in chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/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.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"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void EchoPrivateGetUserConsentFunction::Finalize(bool consent) { 241 void EchoPrivateGetUserConsentFunction::Finalize(bool consent) {
242 // Consent should not be true if offers redeeming is disabled. 242 // Consent should not be true if offers redeeming is disabled.
243 CHECK(redeem_offers_allowed_ || !consent); 243 CHECK(redeem_offers_allowed_ || !consent);
244 results_ = echo_api::GetUserConsent::Results::Create(consent); 244 results_ = echo_api::GetUserConsent::Results::Create(consent);
245 SendResponse(true); 245 SendResponse(true);
246 246
247 // Release the reference added in |OnRedeemOffersAllowedChecked|, before 247 // Release the reference added in |OnRedeemOffersAllowedChecked|, before
248 // showing the dialog. 248 // showing the dialog.
249 Release(); 249 Release();
250 } 250 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698