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

Side by Side Diff: chrome/browser/extensions/api/serial/serial_api.cc

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview Created 6 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/extensions/api/serial/serial_api.h" 5 #include "chrome/browser/extensions/api/serial/serial_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/serial/serial_connection.h" 10 #include "chrome/browser/extensions/api/serial/serial_connection.h"
11 #include "chrome/browser/extensions/api/serial/serial_event_dispatcher.h" 11 #include "chrome/browser/extensions/api/serial/serial_event_dispatcher.h"
12 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/common/extensions/api/serial.h" 13 #include "chrome/common/extensions/api/serial.h"
13 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
14 #include "device/serial/serial_device_enumerator.h" 15 #include "device/serial/serial_device_enumerator.h"
15 #include "extensions/browser/extension_system.h" 16 #include "extensions/browser/extension_system.h"
16 17
17 using content::BrowserThread; 18 using content::BrowserThread;
18 19
19 namespace extensions { 20 namespace extensions {
20 21
21 namespace api { 22 namespace api {
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 return; 418 return;
418 } 419 }
419 420
420 bool success = connection->SetControlSignals(params_->signals); 421 bool success = connection->SetControlSignals(params_->signals);
421 results_ = serial::SetControlSignals::Results::Create(success); 422 results_ = serial::SetControlSignals::Results::Create(success);
422 } 423 }
423 424
424 } // namespace api 425 } // namespace api
425 426
426 } // namespace extensions 427 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698