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

Side by Side Diff: chrome/browser/extensions/user_script_master.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/user_script_master.h" 5 #include "chrome/browser/extensions/user_script_master.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/pickle.h" 12 #include "base/pickle.h"
13 #include "base/stl_util-inl.h" 13 #include "base/stl_util.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "base/version.h" 16 #include "base/version.h"
17 #include "chrome/browser/extensions/extension_service.h" 17 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/common/chrome_notification_types.h" 19 #include "chrome/common/chrome_notification_types.h"
20 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
21 #include "chrome/common/extensions/extension_messages.h" 21 #include "chrome/common/extensions/extension_messages.h"
22 #include "chrome/common/extensions/extension_resource.h" 22 #include "chrome/common/extensions/extension_resource.h"
23 #include "content/browser/renderer_host/render_process_host.h" 23 #include "content/browser/renderer_host/render_process_host.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 if (!handle) 373 if (!handle)
374 return; 374 return;
375 375
376 base::SharedMemoryHandle handle_for_process; 376 base::SharedMemoryHandle handle_for_process;
377 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) 377 if (!shared_memory->ShareToProcess(handle, &handle_for_process))
378 return; // This can legitimately fail if the renderer asserts at startup. 378 return; // This can legitimately fail if the renderer asserts at startup.
379 379
380 if (base::SharedMemory::IsHandleValid(handle_for_process)) 380 if (base::SharedMemory::IsHandleValid(handle_for_process))
381 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process)); 381 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process));
382 } 382 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698